Added docker, sort of

This commit is contained in:
Zakary Timson 2018-01-05 20:10:41 -05:00
parent ab40a0422e
commit 1d452f8ddf
2 changed files with 22 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3
EXPOSE 8000
ADD . /
RUN rm OACPL/settings.py
RUN mv OACPL/settings.base.py OACPL/settings.py
RUN pip install -r requirements.txt
RUN python3 manage.py makemigrations --no-input
RUN python3 manage.py migrate --no-input
RUN python3 manage.py collectstatic --no-input

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: 1
services:
db:
image: sqlite3
web:
command: python3 manage.py runserver
image: django
build: .