From f0b0c43eef3c42d9e19b9aded74a68cd81cdb695 Mon Sep 17 00:00:00 2001 From: Vlad Grigorescu Date: Mon, 25 Nov 2024 17:08:09 -0600 Subject: [PATCH] Fix Dockerfile args --- compose/local/django/Dockerfile | 4 +++- compose/local/docs/Dockerfile | 4 +++- compose/production/django/Dockerfile | 4 +++- compose/production/postgres/Dockerfile | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/compose/local/django/Dockerfile b/compose/local/django/Dockerfile index 295a186..aaba2ef 100644 --- a/compose/local/django/Dockerfile +++ b/compose/local/django/Dockerfile @@ -1,4 +1,6 @@ -FROM python:${PYTHON_IMAGE_VER:-3.12}-slim-bookworm +ARG PYTHON_IMAGE_VER=3.12 + +FROM python:${PYTHON_IMAGE_VER}-slim-bookworm ENV PIP_ROOT_USER_ACTION ignore ENV PYTHONUNBUFFERED 1 diff --git a/compose/local/docs/Dockerfile b/compose/local/docs/Dockerfile index 15dd903..49965c7 100644 --- a/compose/local/docs/Dockerfile +++ b/compose/local/docs/Dockerfile @@ -1,4 +1,6 @@ -FROM python:${PYTHON_IMAGE_VER:-3.12}-slim-bookworm +ARG PYTHON_IMAGE_VER=3.12 + +FROM python:${PYTHON_IMAGE_VER}-slim-bookworm ENV PIP_ROOT_USER_ACTION ignore ENV PYTHONUNBUFFERED 1 diff --git a/compose/production/django/Dockerfile b/compose/production/django/Dockerfile index 2a4680d..8474812 100644 --- a/compose/production/django/Dockerfile +++ b/compose/production/django/Dockerfile @@ -1,4 +1,6 @@ -FROM python:${PYTHON_IMAGE_VER:-3.12}-slim-bookworm +ARG PYTHON_IMAGE_VER=3.12 + +FROM python:${PYTHON_IMAGE_VER}-slim-bookworm ENV PYTHONUNBUFFERED 1 diff --git a/compose/production/postgres/Dockerfile b/compose/production/postgres/Dockerfile index d5a6ed3..88f86a9 100644 --- a/compose/production/postgres/Dockerfile +++ b/compose/production/postgres/Dockerfile @@ -1,4 +1,6 @@ -FROM postgres:${POSTGRES_IMAGE_VER:-12.3} +ARG POSTGRES_IMAGE_VER=12.3 + +FROM postgres:${POSTGRES_IMAGE_VER} COPY ./compose/production/postgres/maintenance /usr/local/bin/maintenance RUN chmod +x /usr/local/bin/maintenance/*