Skip to content

Commit

Permalink
Build using golang 1.16
Browse files Browse the repository at this point in the history
Fixes pravega#380

Signed-off-by: Adi Muraru <[email protected]>
  • Loading branch information
amuraru committed Aug 20, 2021
1 parent c62716b commit 63292d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG DOCKER_REGISTRY
ARG ALPINE_VERSION=3.14
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}golang:1.13.8-alpine3.11 as go-builder
FROM ${DOCKER_REGISTRY:+$DOCKER_REGISTRY/}golang:1.16-alpine${ALPINE_VERSION} as go-builder

ARG PROJECT_NAME=zookeeper-operator
ARG REPO_PATH=github.com/pravega/$PROJECT_NAME
Expand All @@ -12,7 +12,9 @@ ARG GIT_SHA=0000000
WORKDIR /src
COPY pkg ./pkg
COPY cmd ./cmd
COPY go.mod ./
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum

# Download all dependencies.
RUN go mod download
Expand Down

0 comments on commit 63292d4

Please sign in to comment.