monobank-firefly3-bot/Dockerfile

22 lines
321 B
Docker
Raw Permalink Normal View History

2024-11-04 19:44:42 +02:00
FROM golang:1.23.2 AS builder
2024-11-04 20:18:28 +02:00
# Install certificates
2024-11-04 20:18:07 +02:00
RUN apt-get update && apt-get install -y ca-certificates
2024-11-04 19:44:42 +02:00
WORKDIR /app
2024-11-04 20:18:18 +02:00
COPY go.mod go.sum .
2024-11-04 19:44:42 +02:00
RUN go mod download && go mod verify
# Copy project files
COPY . .
# Build
2024-11-04 19:54:06 +02:00
RUN make
2024-11-04 19:44:42 +02:00
FROM scratch
COPY --from=builder /app/monobank-firefly3-bot /app
ENTRYPOINT ["/app"]