guestbooky/build/guestbooky-backup/Dockerfile
Felipe Cotti 6e62c3728a
Some checks are pending
CI/CD / build-backup-job (push) Waiting to run
CI/CD / build-and-test-backend (push) Waiting to run
Let's go with root folder.
2025-01-27 02:14:26 -03:00

19 lines
No EOL
365 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 /root/guestbooky-backup
CMD ["./guestbooky-backup"]