Add go.sum

This commit is contained in:
Vitaliy Filippov
2021-10-19 02:42:10 +03:00
parent fb2f7a0d3c
commit dcc03ee41f
3 changed files with 449 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# Compile stage
FROM golang:buster AS build
ADD go.mod /app/
ADD go.sum go.mod /app/
RUN cd /app; CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go mod download -x
ADD . /app
RUN perl -i -e '$/ = undef; while(<>) { s/\n\s*(\{\s*\n)/$1\n/g; s/\}(\s*\n\s*)else\b/$1} else/g; print; }' `find /app -name '*.go'`