Files
Django_kube/dockerfile
T
pi-ux-ce cc2d9e1b14
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m55s
try to apply migrations
2024-10-30 10:54:26 +00:00

13 lines
247 B
Docker

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" ]