fix: on build, try to delete src before copy
This commit is contained in:
@@ -3,12 +3,14 @@ FROM python:3.8-alpine
|
|||||||
RUN apk add --no-cache gcc libc-dev linux-headers
|
RUN apk add --no-cache gcc libc-dev linux-headers
|
||||||
|
|
||||||
# install pypi packages
|
# install pypi packages
|
||||||
|
RUN rm -rf /django_project
|
||||||
COPY . /django_project
|
COPY . /django_project
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install /django_project
|
RUN pip install /django_project
|
||||||
RUN pip install uWSGI==2.0.21
|
RUN pip install uWSGI==2.0.21
|
||||||
|
|
||||||
COPY ./docker/uwsgi.ini /uwsgi.ini
|
COPY ./docker/uwsgi.ini /uwsgi.ini
|
||||||
|
RUN rm -rf /scripts
|
||||||
COPY ./scripts /scripts
|
COPY ./scripts /scripts
|
||||||
RUN chmod -R +x /scripts
|
RUN chmod -R +x /scripts
|
||||||
ENV PATH="/scripts:/py/bin:$PATH"
|
ENV PATH="/scripts:/py/bin:$PATH"
|
||||||
|
|||||||
Reference in New Issue
Block a user