From bd0347099555fbcf8159c06e55fbbae2b7d378c5 Mon Sep 17 00:00:00 2001 From: netlims Date: Thu, 7 Apr 2022 09:45:46 +0300 Subject: [PATCH 1/2] update go and alpine versions --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index feb2f6d96..ccb33fb72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.15.5-alpine AS build +FROM golang:1.17.8-alpine AS build ARG consul_version=1.8.2 ADD https://releases.hashicorp.com/consul/${consul_version}/consul_${consul_version}_linux_amd64.zip /usr/local/bin @@ -13,7 +13,7 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go test -mod=vendor -trimpath -ldflags "-s -w" ./... RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=vendor -trimpath -ldflags "-s -w" -FROM alpine:3.12 +FROM alpine:3.15 RUN apk update && apk add --no-cache ca-certificates COPY --from=build /src/fabio /usr/bin ADD fabio.properties /etc/fabio/fabio.properties From 75d415ba48acf129ac98652a8de8a29ecc732696 Mon Sep 17 00:00:00 2001 From: netlims Date: Sat, 9 Apr 2022 20:35:18 +0300 Subject: [PATCH 2/2] add alpha version to alpine --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ccb33fb72..f4cf1a842 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17.8-alpine AS build +FROM golang:1.18-alpine3.15 AS build ARG consul_version=1.8.2 ADD https://releases.hashicorp.com/consul/${consul_version}/consul_${consul_version}_linux_amd64.zip /usr/local/bin