mirror of
https://github.com/cooperspencer/gickup.git
synced 2025-05-19 15:54:14 +02:00
15 lines
419 B
Docker
15 lines
419 B
Docker
FROM golang:alpine as builder
|
|
|
|
RUN apk add -U --no-cache ca-certificates
|
|
|
|
WORKDIR /go/src/github.com/cooperspencer/gickup
|
|
COPY . .
|
|
|
|
RUN go get -d -v ./...
|
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o app .
|
|
|
|
FROM scratch as production
|
|
WORKDIR /
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=builder /go/src/github.com/cooperspencer/gickup/app /gickup/app
|
|
CMD ["./gickup/app"]
|