Template
1
0
Fork 0
goth.stack/Dockerfile

15 lines
219 B
Text
Raw Normal View History

2023-05-18 20:04:55 -06:00
FROM golang:1.22.0 as build
WORKDIR /app
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /go/bin/app
FROM gcr.io/distroless/base-debian12
COPY --from=build /go/bin/app /
CMD [ "/app" ]