15 lines
281 B
Docker
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"]
|