Skip to content

Commit f39aff8

Browse files
authored
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
1 parent f1da6ba commit f39aff8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

{{cookiecutter.project_slug}}/compose/local/django/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM docker.io/python:3.11.8-slim-bookworm as python
33

44
# Python build stage
5-
FROM docker.io/python as python-build-stage
5+
FROM python as python-build-stage
66

77
ARG BUILD_ENVIRONMENT=local
88

@@ -22,7 +22,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
2222

2323

2424
# Python 'run' stage
25-
FROM docker.io/python as python-run-stage
25+
FROM python as python-run-stage
2626

2727
ARG BUILD_ENVIRONMENT=local
2828
ARG APP_HOME=/app

{{cookiecutter.project_slug}}/compose/local/docs/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM docker.io/python:3.11.8-slim-bookworm as python
33

44

55
# Python build stage
6-
FROM docker.io/python as python-build-stage
6+
FROM python as python-build-stage
77

88
ENV PYTHONDONTWRITEBYTECODE 1
99

@@ -26,7 +26,7 @@ RUN pip wheel --no-cache-dir --wheel-dir /usr/src/app/wheels \
2626

2727

2828
# Python 'run' stage
29-
FROM docker.io/python as python-run-stage
29+
FROM python as python-run-stage
3030

3131
ARG BUILD_ENVIRONMENT
3232
ENV PYTHONUNBUFFERED 1

{{cookiecutter.project_slug}}/compose/production/django/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN npm run build
2828
FROM docker.io/python:3.11.8-slim-bookworm as python
2929

3030
# Python build stage
31-
FROM docker.io/python as python-build-stage
31+
FROM python as python-build-stage
3232

3333
ARG BUILD_ENVIRONMENT=production
3434

@@ -48,7 +48,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \
4848

4949

5050
# Python 'run' stage
51-
FROM docker.io/python as python-run-stage
51+
FROM python as python-run-stage
5252

5353
ARG BUILD_ENVIRONMENT=production
5454
ARG APP_HOME=/app

0 commit comments

Comments
 (0)