Dockerfile créé avec mode production et mode développement
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -8,9 +8,11 @@ COPY requirements.txt $APPS_DIR/
|
||||
|
||||
WORKDIR $APPS_DIR
|
||||
|
||||
# uWSGI requires linux-headers
|
||||
RUN set -ex \
|
||||
&& buildDeps=' \
|
||||
build-base \
|
||||
linux-headers \
|
||||
python3-dev \
|
||||
' \
|
||||
&& apk --no-cache --update add \
|
||||
@ -22,9 +24,13 @@ RUN set -ex \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
COPY ./collection $APPS_DIR
|
||||
COPY ./collection .
|
||||
|
||||
VOLUME $DB_DIR
|
||||
|
||||
COPY ./docker-entrypoint.sh .
|
||||
COPY ./uwsgi.ini .
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["/bin/sh"]
|
||||
CMD ["prod"]
|
||||
|
Reference in New Issue
Block a user