guestbooky/build/guestbooky-backup/Dockerfile
Felipe Cotti c62b542552
Some checks are pending
CI/CD / build-backup-job (push) Waiting to run
CI/CD / build-and-test-backend (push) Waiting to run
backup: Add backup capabilities using an S3-compatible API.
2025-01-27 01:24:15 -03:00

21 lines
No EOL
412 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 .
# Start a new stage from scratch
FROM alpine:latest
WORKDIR /root/
# Copy the Pre-built binary file from the previous stage
COPY --from=builder /app/guestbooky-backup .
# Command to run the executable
CMD ["./guestbooky-backup"]