mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
* Bump go to 1.19.1 * Bump remaining go-version to the 1.19.1 * Add extra paths for test-go * Oops, putting the right path in the right place * gofmt file * gofmt ALL THE THINGS * Moar changes * Actually, go.mod doesn't like minor versions
11 lines
395 B
Docker
11 lines
395 B
Docker
FROM golang:1.19.1-alpine AS builder
|
|
WORKDIR /build
|
|
COPY . .
|
|
RUN go get -d -v
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-extldflags '-static'"
|
|
|
|
#FROM scratch
|
|
#COPY --from=builder /build/lambda /build/terraform /
|
|
#COPY --from=builder /build/deploy_terraform /deploy_terraform
|
|
#COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
ENTRYPOINT ["/build/lambda"]
|