diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4d08229 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..70c8bc3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: 1 + +services: + + db: + image: sqlite3 + + web: + command: python3 manage.py runserver + image: django + build: .