diff --git a/Dockerfile b/Dockerfile index 1e8f69783..310ebe544 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ ARG PYTHON_VERSION=3.12-slim-bookworm # define an alias for the specfic python version used in this file. -FROM python:${PYTHON_VERSION} as python +FROM python:${PYTHON_VERSION} AS python # Python build stage -FROM python as python-build-stage +FROM python AS python-build-stage ARG BUILD_ENVIRONMENT=production @@ -26,7 +26,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \ # Python 'run' stage -FROM python as python-run-stage +FROM python AS python-run-stage ARG BUILD_ENVIRONMENT=production ARG APP_HOME=/app diff --git a/compose/local/django/Dockerfile b/compose/local/django/Dockerfile index 793c424cc..73cbb2c26 100644 --- a/compose/local/django/Dockerfile +++ b/compose/local/django/Dockerfile @@ -1,10 +1,10 @@ ARG PYTHON_VERSION=3.12-slim-bullseye # define an alias for the specfic python version used in this file. -FROM python:${PYTHON_VERSION} as python +FROM python:${PYTHON_VERSION} AS python # Python build stage -FROM python as python-build-stage +FROM python AS python-build-stage ARG BUILD_ENVIRONMENT=local @@ -24,7 +24,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \ # Python 'run' stage -FROM python as python-run-stage +FROM python AS python-run-stage ARG BUILD_ENVIRONMENT=local ARG APP_HOME=/app diff --git a/compose/local/docs/Dockerfile b/compose/local/docs/Dockerfile index b2dd770d5..53ab67399 100644 --- a/compose/local/docs/Dockerfile +++ b/compose/local/docs/Dockerfile @@ -1,11 +1,11 @@ ARG PYTHON_VERSION=3.12-slim-bullseye # define an alias for the specfic python version used in this file. -FROM python:${PYTHON_VERSION} as python +FROM python:${PYTHON_VERSION} AS python # Python build stage -FROM python as python-build-stage +FROM python AS python-build-stage ENV PYTHONDONTWRITEBYTECODE 1 @@ -28,7 +28,7 @@ RUN pip wheel --no-cache-dir --no-deps --wheel-dir /usr/src/app/wheels \ # Python 'run' stage -FROM python as python-run-stage +FROM python AS python-run-stage ARG BUILD_ENVIRONMENT ENV PYTHONUNBUFFERED 1 diff --git a/compose/production/django/Dockerfile b/compose/production/django/Dockerfile index d6404f1e1..f8dab9e9f 100644 --- a/compose/production/django/Dockerfile +++ b/compose/production/django/Dockerfile @@ -3,10 +3,10 @@ ARG PYTHON_VERSION=3.12-slim-bullseye # define an alias for the specfic python version used in this file. -FROM python:${PYTHON_VERSION} as python +FROM python:${PYTHON_VERSION} AS python # Python build stage -FROM python as python-build-stage +FROM python AS python-build-stage ARG BUILD_ENVIRONMENT=production @@ -26,7 +26,7 @@ RUN pip wheel --wheel-dir /usr/src/app/wheels \ # Python 'run' stage -FROM python as python-run-stage +FROM python AS python-run-stage ARG BUILD_ENVIRONMENT=production ARG APP_HOME=/app