Add docker deploy
Some checks failed
build docker image / docker-build (push) Has been cancelled

This commit is contained in:
Illya Marchenko 2024-11-04 20:18:07 +02:00
parent 39459202f1
commit 00657a8660
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F

@ -1,5 +1,7 @@
FROM golang:1.23.2 AS builder FROM golang:1.23.2 AS builder
RUN apt-get update && apt-get install -y ca-certificates
WORKDIR /app WORKDIR /app
COPY go.mod go.sum ./ COPY go.mod go.sum ./
@ -14,7 +16,7 @@ RUN make
FROM scratch FROM scratch
COPY --from=builder /etc/ssl/* /etc/ssl COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs
COPY --from=builder /app/monobank-firefly3-bot /app COPY --from=builder /app/monobank-firefly3-bot /app
ENTRYPOINT ["/app"] ENTRYPOINT ["/app"]