Files
Django_kube/dockerfile
T
Pierre Geeraert 6a52ed2f66
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m20s
try to use cache
2025-06-03 10:28:43 +01:00

14 lines
363 B
Docker

FROM python:3
WORKDIR /code/
COPY requirements.txt ./
COPY django_code ./
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip
RUN --mount=type=cache,target=/root/.cache/pip 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" ]