FROM python:3

WORKDIR /code/

COPY requirements.txt ./
COPY django_code ./

RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python django_code/manage.py migrate

CMD [ "python","django_code/manage.py","runserver","0.0.0.0:8000" ]
