Files
Django_kube/dockerfile
T
Pierre Geeraert 9afe770202
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m40s
try to use cache
2025-06-03 10:43:15 +01:00

14 lines
393 B
Docker

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