himbot/Dockerfile

21 lines
383 B
Text
Raw Normal View History

2024-10-21 21:20:10 -06:00
FROM golang:1.23.2-alpine AS build
2024-05-15 10:02:42 -06:00
WORKDIR /app
2024-10-21 21:20:10 -06:00
COPY go.mod go.sum ./
2024-05-15 10:02:42 -06:00
RUN go mod download
2024-10-21 21:20:10 -06:00
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /go/bin/app
2024-10-21 22:12:57 -06:00
FROM gcr.io/distroless/static-debian11
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
2024-05-15 10:02:42 -06:00
2024-10-21 21:20:10 -06:00
COPY --from=build /go/bin/app /app
2024-05-15 10:02:42 -06:00
2024-10-21 22:12:57 -06:00
# Set the entrypoint
2024-10-21 21:20:10 -06:00
ENTRYPOINT ["/app"]