Skip to content

Commit

Permalink
Dockerfile finally works
Browse files Browse the repository at this point in the history
  • Loading branch information
harshraj22 committed Jun 4, 2022
1 parent 8b2daae commit b8dafbc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY ./cse_hub .

EXPOSE 12345

CMD ["echo", "Hello World"]
CMD ["python3", "manage.py", "migrate" ,"--run-syncdb"]
CMD ["python3", "manage.py", "makemigrations"]
CMD ["python3", "manage.py", "migrate"]
# https://stackoverflow.com/questions/55831728/what-is-statreloader-while-running-django
CMD ["python3", "manage.py", "runserver", "--noreload"]
CMD ["python3", "manage.py", "runserver", "0.0.0.0:12345", "--noreload"]

0 comments on commit b8dafbc

Please sign in to comment.