feat!: bump to go1.16 and embed version

This commit is contained in:
sentriz
2021-05-08 15:26:26 +01:00
committed by Senan Kelly
parent 6a99cdf299
commit 6f15589c08
16 changed files with 26 additions and 292 deletions

View File

@@ -12,8 +12,7 @@ COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN ./_do_gen_assets
RUN ./_do_build_server
RUN GOOS=linux go build -o gonic cmd/gonic/gonic.go
FROM alpine:3.13.1
RUN apk add -U --no-cache \
@@ -21,6 +20,7 @@ RUN apk add -U --no-cache \
ca-certificates \
tzdata \
tini
COPY --from=builder \
/usr/lib/libgcc_s.so.1 \
/usr/lib/libstdc++.so.6 \