mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-18 12:30:57 +03:00
Enhances #360
This commit is contained in:
parent
e23e9ceb7e
commit
faa534b3c1
|
@ -6,7 +6,7 @@ FROM python:2.7
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||||
ADD ./requirements/production.txt /requirements/production.txt
|
ADD ./requirements /requirements
|
||||||
|
|
||||||
RUN pip install -r /requirements/production.txt
|
RUN pip install -r /requirements/production.txt
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ FROM python:2.7
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||||
ADD ./requirements/local.txt /requirements/local.txt
|
ADD ./requirements /requirements
|
||||||
|
|
||||||
RUN pip install -r /requirements/local.txt
|
RUN pip install -r /requirements/local.txt
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
dockerfile: Dockerfile-dev
|
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
|
@ -8,6 +7,7 @@ postgres:
|
||||||
- /data/{{cookiecutter.repo_name}}/postgres:/var/lib/postgresql/data
|
- /data/{{cookiecutter.repo_name}}/postgres:/var/lib/postgresql/data
|
||||||
|
|
||||||
django:
|
django:
|
||||||
|
dockerfile: Dockerfile-dev
|
||||||
build: .
|
build: .
|
||||||
command: python /app/manage.py runserver_plus 0.0.0.0:8000
|
command: python /app/manage.py runserver_plus 0.0.0.0:8000
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user