monobank-firefly3-bot/Dockerfile

20 lines
290 B
Docker
Raw Normal View History

2024-11-04 19:44:42 +02:00
FROM golang:1.23.2 AS builder
WORKDIR /app
COPY go.mod go.sum ./
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
2024-11-04 20:11:50 +02:00
COPY --from=builder /etc/ssl/cert /etc/ssl/certs
2024-11-04 19:44:42 +02:00
COPY --from=builder /app/monobank-firefly3-bot /app
ENTRYPOINT ["/app"]