From 3c8131f057556c7d1f33589c79104ba9eca80249 Mon Sep 17 00:00:00 2001 From: "Marlon (Esolitos) Saglia" Date: Tue, 12 Mar 2024 21:21:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Restructured=20Dockerfile=20to?= =?UTF-8?q?=20use=20variable=20for=20base=20image=20to=20improve=20flexibi?= =?UTF-8?q?lity.=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ Refactor: Update base image variable in Dockerfiles to use dynamically defined image name. --- templates/drupal-cron/default.Dockerfile | 3 ++- templates/drupal-php/default.Dockerfile | 3 ++- templates/drupal-tailscale/default.Dockerfile | 3 ++- templates/nginx/default.Dockerfile | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/drupal-cron/default.Dockerfile b/templates/drupal-cron/default.Dockerfile index 347dc70..fa977f3 100644 --- a/templates/drupal-cron/default.Dockerfile +++ b/templates/drupal-cron/default.Dockerfile @@ -1,5 +1,6 @@ ARG BASE_TAG=8-dev -FROM wodby/drupal-php:${BASE_TAG} +ARG BASE_IMAGE=wodby/drupal-php +FROM ${BASE_IMAGE}:${BASE_TAG} ARG COPY_FROM=. ARG COPY_TO=. diff --git a/templates/drupal-php/default.Dockerfile b/templates/drupal-php/default.Dockerfile index 78b5d00..7c9a8ff 100644 --- a/templates/drupal-php/default.Dockerfile +++ b/templates/drupal-php/default.Dockerfile @@ -1,5 +1,6 @@ ARG BASE_TAG=8-dev -FROM wodby/drupal-php:${BASE_TAG} +ARG BASE_IMAGE=wodby/drupal-php +FROM ${BASE_IMAGE}:${BASE_TAG} ARG COPY_FROM=. ARG COPY_TO=. diff --git a/templates/drupal-tailscale/default.Dockerfile b/templates/drupal-tailscale/default.Dockerfile index bb0ba1b..6710588 100644 --- a/templates/drupal-tailscale/default.Dockerfile +++ b/templates/drupal-tailscale/default.Dockerfile @@ -1,5 +1,6 @@ ARG BASE_TAG=8-dev -FROM wodby/drupal-php:${BASE_TAG} +ARG BASE_IMAGE=wodby/drupal-php +FROM ${BASE_IMAGE}:${BASE_TAG} ARG COPY_FROM=. ARG COPY_TO=. diff --git a/templates/nginx/default.Dockerfile b/templates/nginx/default.Dockerfile index b104fa5..1472d32 100644 --- a/templates/nginx/default.Dockerfile +++ b/templates/nginx/default.Dockerfile @@ -1,5 +1,6 @@ ARG BASE_TAG=1 -FROM wodby/nginx:${BASE_TAG} +ARG BASE_IMAGE=wodby/nginx +FROM ${BASE_IMAGE}:${BASE_TAG} ARG COPY_FROM=. ARG COPY_TO=.