monobank-firefly3-bot/Dockerfile
stuzer05 3986e1c9de
All checks were successful
build docker image / docker-build (push) Successful in 49s
Add docker deploy
2024-11-04 20:18:28 +02:00

23 lines
391 B
Docker

FROM golang:1.23.2 AS builder
# Install certificates
RUN apt-get update && apt-get install -y ca-certificates
WORKDIR /app
COPY go.mod go.sum .
RUN go mod download && go mod verify
# Copy project files
COPY . .
# Build
RUN make
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs
COPY --from=builder /app/monobank-firefly3-bot /app
ENTRYPOINT ["/app"]