From 3f6100f6b9b0ab6e35a48f94c1de78785ebb9ac2 Mon Sep 17 00:00:00 2001 From: PikuZheng Date: Fri, 15 Dec 2023 14:45:53 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd7b792..a2cf6f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]