monobank-firefly3-bot/Dockerfile
stuzer05 b05b1b9b48
Some checks failed
build docker image / docker-build (push) Failing after 51s
Remove load .env from bin path
2024-11-04 19:44:42 +02:00

20 lines
266 B
Docker

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
RUN go mod download \
&& make
FROM scratch
COPY --from=builder /app/monobank-firefly3-bot /app
ENTRYPOINT ["/app"]