mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-26 08:20:38 +03:00
Fix fully qualified docker images (#4905)
* Fix Python (docker) Docker image version not being recognized after adding registry to image names * Fix Python (docs) Docker image version not being recognized after adding registry to image names * Fix Python (django) Docker image version not being recognized after adding registry to image names
This commit is contained in:
parent
f1da6ba5f5
commit
f39aff8b3f
|
@ -2,7 +2,7 @@
|
|||
FROM docker.io/python:3.11.8-slim-bookworm as python
|
||||
|
||||
# Python build stage
|
||||
FROM docker.io/python as python-build-stage
|
||||
FROM python as python-build-stage
|
||||
|
||||
ARG BUILD_ENVIRONMENT=local
|
||||
|
||||
|
@ -22,7 +22,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
|
|||
|
||||
|
||||
# Python 'run' stage
|
||||
FROM docker.io/python as python-run-stage
|
||||
FROM python as python-run-stage
|
||||
|
||||
ARG BUILD_ENVIRONMENT=local
|
||||
ARG APP_HOME=/app
|
||||
|
|
|
@ -3,7 +3,7 @@ FROM docker.io/python:3.11.8-slim-bookworm as python
|
|||
|
||||
|
||||
# Python build stage
|
||||
FROM docker.io/python as python-build-stage
|
||||
FROM python as python-build-stage
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
|
||||
|
@ -26,7 +26,7 @@ RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
|
|||
|
||||
|
||||
# Python 'run' stage
|
||||
FROM docker.io/python as python-run-stage
|
||||
FROM python as python-run-stage
|
||||
|
||||
ARG BUILD_ENVIRONMENT
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
|
|
@ -28,7 +28,7 @@ RUN npm run build
|
|||
FROM docker.io/python:3.11.8-slim-bookworm as python
|
||||
|
||||
# Python build stage
|
||||
FROM docker.io/python as python-build-stage
|
||||
FROM python as python-build-stage
|
||||
|
||||
ARG BUILD_ENVIRONMENT=production
|
||||
|
||||
|
@ -48,7 +48,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
|
|||
|
||||
|
||||
# Python 'run' stage
|
||||
FROM docker.io/python as python-run-stage
|
||||
FROM python as python-run-stage
|
||||
|
||||
ARG BUILD_ENVIRONMENT=production
|
||||
ARG APP_HOME=/app
|
||||
|
|
Loading…
Reference in New Issue
Block a user