From 968bf5dbe711c2f62a09955929f950509653e5e5 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 30 May 2022 20:29:19 +0100 Subject: [PATCH] add customisable Nginx tag --- Dockerfile | 3 ++- docker-compose.yaml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66db550..8c83e46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ -FROM nginx:stable +ARG NGINX_TAG +FROM nginx:${NGINX_TAG} COPY ./includes/ /etc/nginx/includes \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 411eb79..7af052e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,7 +4,10 @@ networks: services: nginx: - build: ./ + build: + context: ./ + args: + NGINX_TAG: ${NGINX_TAG-stable} restart: unless-stopped networks: - proxy