Skip to content

Commit

Permalink
🚀 Restructured Dockerfile to use variable for base image to improve f…
Browse files Browse the repository at this point in the history
…lexibility. (#5)

✨ Refactor: Update base image variable in Dockerfiles to use dynamically defined image name.
  • Loading branch information
esolitos committed Mar 12, 2024
1 parent a2df08a commit 3c8131f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion templates/drupal-cron/default.Dockerfile
Original file line number Diff line number Diff line change
@@ -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=.
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal-php/default.Dockerfile
Original file line number Diff line number Diff line change
@@ -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=.
Expand Down
3 changes: 2 additions & 1 deletion templates/drupal-tailscale/default.Dockerfile
Original file line number Diff line number Diff line change
@@ -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=.
Expand Down
3 changes: 2 additions & 1 deletion templates/nginx/default.Dockerfile
Original file line number Diff line number Diff line change
@@ -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=.
Expand Down

0 comments on commit 3c8131f

Please sign in to comment.