8000 Update Docker Scripts · app-generator/api-server-django@8be8f4b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8be8f4b

Browse files
committed
Update Docker Scripts
1 parent adc21ad commit 8be8f4b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ ENV PYTHONDONTWRITEBYTECODE 1
55
ENV PYTHONUNBUFFERED 1
66

77
COPY requirements.txt .
8+
89
# install python dependencies
910
RUN pip install --upgrade pip
1011
RUN pip install --no-cache-dir -r requirements.txt
1112

13+
COPY env.sample .env
14+
1215
COPY . .
1316

1417
# running migrations
18+
RUN python manage.py makemigrations
1519
RUN python manage.py migrate
1620

1721
# gunicorn
1822
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]
23+

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ services:
33
appseed-app:
44
container_name: appseed_app
55
restart: always
6-
env_file: .env
76
build: .
87
networks:
98
- db_network

0 commit comments

Comments
 (0)
0