build with golang 1.16

This commit is contained in:
CALIN Cristian Andrei
2021-09-13 12:03:33 +03:00
parent fc3359223f
commit 32ebdd9ac1
3 changed files with 400 additions and 80 deletions

View File

@@ -1,12 +1,13 @@
# Copyright 2021 Synology Inc.
############## Build stage ##############
FROM golang:1.13.6-alpine as builder
FROM golang:1.16.8-alpine as builder
LABEL stage=synobuilder
RUN apk add --no-cache alpine-sdk
WORKDIR /go/src/synok8scsiplugin
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY Makefile .