Update golang versions everywhere, use alpine 3.13 for image, remove vendor dir.
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
FROM golang:1.13.1-alpine AS build
|
||||
FROM golang:1.16.5-alpine AS build
|
||||
|
||||
WORKDIR /fastpastebin
|
||||
COPY . .
|
||||
|
||||
WORKDIR /fastpastebin/cmd/fastpastebin
|
||||
|
||||
RUN GOFLAGS="-mod=vendor" go build
|
||||
RUN CGO_ENABLED=0 go build -tags netgo
|
||||
|
||||
FROM alpine:3.10
|
||||
FROM alpine:3.13
|
||||
LABEL maintainer "Stanislav N. <pztrn@pztrn.name>"
|
||||
|
||||
COPY --from=build /fastpastebin/cmd/fastpastebin/fastpastebin /app/fastpastebin
|
||||
|
Reference in New Issue
Block a user