ci/woodpecker/push/woodpecker Pipeline was canceled
Base python:3.10 (917MB) dominated the 986MB image and kaniko's snapshot/push time. All deps are pure-python/wheels, so slim works without build tools. Replace the curl healthcheck (curl absent in slim) with a stdlib urllib check. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
269 B
Docker
18 lines
269 B
Docker
FROM python:3.10-slim
|
|
|
|
#
|
|
WORKDIR /code
|
|
|
|
#
|
|
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
#
|
|
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
#
|
|
COPY ./app /code/app
|
|
|
|
|
|
#
|
|
# CMD ["python", "/code/app/demo.py"]
|