mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-26 11:34:00 +03:00
Switch from runtime- to compile-time set production django docker service (#1144)
Extends #971
This commit is contained in:
parent
706c324e6a
commit
f5ccce4ef8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user