build with golang 1.16

This commit is contained in:
CALIN Cristian Andrei
2021-09-13 12:03:33 +03:00
parent 01541defd8
commit 33076f1d58
3 changed files with 396 additions and 79 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 .