himbot/Dockerfile
2024-10-20 22:45:16 -06:00

14 lines
219 B
Docker

FROM golang:1.23.2 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" ]