From a651657f2a48f8307c943123a8c6f167bc4697c1 Mon Sep 17 00:00:00 2001 From: Ernesto Ojeda Date: Wed, 19 Jan 2022 13:06:17 -0700 Subject: [PATCH] ci: Go 1.17 related changes (#1023) Signed-off-by: Ernesto Ojeda --- app-service-template/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app-service-template/Dockerfile b/app-service-template/Dockerfile index 4416a89e4..b6eb01033 100644 --- a/app-service-template/Dockerfile +++ b/app-service-template/Dockerfile @@ -16,7 +16,7 @@ # #build stage -ARG BASE=golang:1.16-alpine3.14 +ARG BASE=golang:1.17-alpine3.15 FROM ${BASE} AS builder ARG ALPINE_PKG_BASE="make git gcc libc-dev libsodium-dev zeromq-dev" @@ -26,10 +26,10 @@ RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/reposi RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} WORKDIR /app -COPY . . - +COPY go.mod vendor* ./ RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." +COPY . . ARG MAKE="make build" RUN $MAKE