Dockerizing

This commit is contained in:
Elijah Lucian
2021-03-20 16:52:56 -07:00
parent a2323321e3
commit a891fa6a50
8 changed files with 94 additions and 2 deletions

9
server/Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM python:3
WORKDIR /usr/src/server
COPY . .
RUN pip install -r requirements.txt
EXPOSE 8000

2
server/setup.sh Executable file
View File

@@ -0,0 +1,2 @@
python manage.py migrate
python manage.py createsuperuser --email admin@example.com --username admin