Update Dockerfile

This commit is contained in:
PikuZheng 2023-12-15 14:45:53 +08:00 committed by GitHub
parent 1c1aa49e75
commit 3f6100f6b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,14 @@
FROM python:3.10-alpine
FROM python:3.10-alpine
WORKDIR /app
COPY ./main.py /app
COPY ./common /app
COPY ./modules /app
COPY ./requirements.txt /app
COPY ./main.py .
COPY ./common ./common
COPY ./modules ./modules
COPY ./requirements.txt .
# 指定源, 如果后期源挂了, 更换个源就可以.
RUN pip install --no-cache -i https://pypi.mirrors.ustc.edu.cn/simple/ -r requirements.txt
# ........., ....................., ......................
RUN pip install --no-cache-dir -r requirements.txt
CMD [ "python", "main.py" ]