Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#Base Image
FROM python:3.7

#Working Directory
WORKDIR /app

#Copy Code
COPY . /app

#Install Libraries
RUN pip install -r requirements.txt

#Migrate Database
RUN python cool_counters/manage.py migrate

#Run the Server
CMD ["python","cool_counters/manage.py","runserver","0.0.0.0:8000"]

2 changes: 1 addition & 1 deletion cool_counters/cool_counters/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["*"]


# Application definition
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Django