Skip to content

Commit

Permalink
Added docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
agent87 committed Mar 13, 2023
1 parent 7b38694 commit ab92bfe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

#
COPY . /home
COPY . .

#port
EXPOSE 80

#
CMD ["python", "manage.py", "make_migrations", " &&" , "python", "manage.py", "migrate", "&&","python", "manage.py", "runserver", "0.0.0.0:80"]
RUN ["python" , "manage.py", "makemigrations"]

#
RUN ["python" , "manage.py", "migrate"]

#
CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]
Empty file added docker-compose.yml
Empty file.

0 comments on commit ab92bfe

Please sign in to comment.