Switch from runtime- to compile-time set production django docker service

Extends #971
This commit is contained in:
Nikita P. Shupeyko 2017-04-24 20:43:10 +03:00
parent 9ea4ace6fb
commit 2c87d34f52
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