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