Switch from runtime- to compile-time set production django docker service (#1144)

Extends #971
This commit is contained in:
Shupeyko Nikita 2017-04-25 00:12:30 +03:00 committed by Jannis Gebauer
parent 706c324e6a
commit f5ccce4ef8
2 changed files with 1 additions and 3 deletions

View File

@ -10,6 +10,7 @@ RUN pip install -r /requirements/production.txt \
COPY . /app
RUN chown -R django /app
USER django
COPY ./compose/django/gunicorn.sh /gunicorn.sh
COPY ./compose/django/entrypoint.sh /entrypoint.sh

View File

@ -16,7 +16,6 @@ services:
build:
context: .
dockerfile: ./compose/django/Dockerfile
user: django
depends_on:
- postgres
- redis
@ -63,7 +62,6 @@ services:
build:
context: .
dockerfile: ./compose/django/Dockerfile
user: django
env_file: .env
depends_on:
- postgres
@ -74,7 +72,6 @@ services:
build:
context: .
dockerfile: ./compose/django/Dockerfile
user: django
env_file: .env
depends_on:
- postgres