From cdc3f6d7b8740089e3785c29c861c8a9ebe4456a Mon Sep 17 00:00:00 2001 From: relikd Date: Tue, 30 May 2023 18:06:50 +0200 Subject: [PATCH] fix: on build, try to delete src before copy --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1eaa320..27c0ba9 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,14 @@ FROM python:3.8-alpine RUN apk add --no-cache gcc libc-dev linux-headers # install pypi packages +RUN rm -rf /django_project COPY . /django_project RUN pip install --upgrade pip RUN pip install /django_project RUN pip install uWSGI==2.0.21 COPY ./docker/uwsgi.ini /uwsgi.ini +RUN rm -rf /scripts COPY ./scripts /scripts RUN chmod -R +x /scripts ENV PATH="/scripts:/py/bin:$PATH"