guestbooky/build/guestbooky-backup/Dockerfile
Felipe Cotti 84c02f6b48
Some checks failed
CI/CD / build-backup-job (push) Has been cancelled
CI/CD / build-and-test-backend (push) Has been cancelled
Chmod, please. Also, fix environment variables. Hopefully.
2025-01-27 01:54:40 -03:00

19 lines
No EOL
360 B
Docker

FROM golang:1.23.1 AS builder
WORKDIR /app
ENV GO111MODULE=on
COPY ../../src/Guestbooky-backup/ .
RUN go mod download
RUN go build -o guestbooky-backup cmd/guestbooky-backup/guestbooky-backup.go
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/guestbooky-backup .
RUN chmod +x guestbooky-backup
CMD ["./guestbooky-backup"]