Update Dockerfile

This commit is contained in:
Phil 2021-12-07 18:24:48 +01:00
parent cb80bd4b6b
commit 73ec092eb2

View file

@ -1,4 +1,4 @@
FROM golang:alpine as builder
FROM golang:alpine
RUN apk add --no-cache gcc libgo
@ -8,8 +8,4 @@ COPY . .
RUN go get -d -v ./...
RUN go build -o app .
FROM scratch as production
WORKDIR /goshorly
COPY --from=builder /go/src/git.ucode.space/goshorly/app .
CMD ["./app"]