FROM python:3

WORKDIR /code/

COPY requirements.txt ./
COPY django_code ./

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

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