goshorly/Dockerfile
2021-12-07 18:09:14 +01:00

15 lines
281 B
Docker

FROM golang:alpine as builder
RUN apk add --no-cache gcc libgo
WORKDIR /go/src/git.ucode.space/goshorly
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"]