Update Dockerfile to use latest versions of Golang and Alpine.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stanislav Nikitin 2022-06-26 22:52:50 +05:00
parent 1cb93c7d97
commit 6b04a1dcd5
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550

View File

@ -1,4 +1,4 @@
FROM golang:1.16.5-alpine AS build FROM golang:1.18.3-alpine AS build
WORKDIR /fastpastebin WORKDIR /fastpastebin
COPY . . COPY . .
@ -7,7 +7,7 @@ WORKDIR /fastpastebin/cmd/fastpastebin
RUN CGO_ENABLED=0 go build -tags netgo RUN CGO_ENABLED=0 go build -tags netgo
FROM alpine:3.13 FROM alpine:3.16.0
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>" LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
COPY --from=build /fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin COPY --from=build /fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin