Skip to content

Commit 7579f8b

Browse files
authored
Update Dockerfile
1 parent 9bcfa8a commit 7579f8b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ RUN pip install gunicorn
77
COPY ./ /app
88
RUN python manage.py makemigrations
99
RUN python manage.py migrate
10+
RUN python manage.py migrate --run-syncdb
11+
RUN python manage.py shell -c "exec(open('myscript.py', encoding='utf-8').read())"
1012
CMD [ "gunicorn", "-b", "0.0.0.0:8787", "coper_files.wsgi" ]

0 commit comments

Comments
 (0)