From 83ca0511d17b4d4202ab72abfed50dbaddef4fde Mon Sep 17 00:00:00 2001 From: Tom Wiesing Date: Thu, 1 Apr 2021 15:54:26 +0200 Subject: [PATCH] Hardcode nginx 1.19.3 for use in Docker Images This commit updates both 'Dockerfile' and 'Dockerfile.alpine' to use 'nginx 1.19.3'. This change was implemented after feedback from @buchdag to be able to use dependabot. --- Dockerfile | 4 +--- Dockerfile.alpine | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index bf7d4cb..8dfc682 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,4 @@ # setup build arguments for version of dependencies to use -ARG NGINX_VERSION=1.19.3 - ARG DOCKER_GEN_VERSION=0.7.4 ARG FOREGO_VERSION=0.16.1 @@ -43,7 +41,7 @@ RUN go get -v ./... && \ CGO_ENABLED=0 GOOS=linux go build -o forego . # Build the final image -FROM nginx:$NGINX_VERSION +FROM nginx:1.19.3 LABEL maintainer="Jason Wilder mail@jasonwilder.com" # Install wget and install/updates certificates diff --git a/Dockerfile.alpine b/Dockerfile.alpine index feb9651..55f3912 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,6 +1,4 @@ # setup build arguments for version of dependencies to use -ARG NGINX_VERSION=1.19.3-alpine - ARG DOCKER_GEN_VERSION=0.7.4 ARG FOREGO_VERSION=0.16.1 @@ -44,7 +42,7 @@ RUN go get -v ./... && \ CGO_ENABLED=0 GOOS=linux go build -o forego . # Build the final image -FROM nginx:$NGINX_VERSION +FROM nginx:1.19.3-alpine LABEL maintainer="Jason Wilder mail@jasonwilder.com" # Install wget and install/updates certificates