Dockerfile créé avec mode production et mode développement

This commit is contained in:
Olivier DOSSMANN
2017-08-23 12:59:17 +02:00
parent 46f9fea2c2
commit ab75a6120a
7 changed files with 57 additions and 5 deletions

View File

@ -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"]