Added docker, sort of
This commit is contained in:
parent
ab40a0422e
commit
1d452f8ddf
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
11
docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
version: 1
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: sqlite3
|
||||||
|
|
||||||
|
web:
|
||||||
|
command: python3 manage.py runserver
|
||||||
|
image: django
|
||||||
|
build: .
|
Loading…
Reference in New Issue
Block a user