guestbooky/build/guestbooky-backup/Dockerfile

19 lines
365 B
Docker
Raw Normal View History

FROM golang:1.23.1 AS builder
WORKDIR /app
ENV GO111MODULE=on
COPY ../../src/Guestbooky-backup/ .
RUN go mod download
2025-01-27 05:30:52 +01:00
RUN go build -o guestbooky-backup cmd/guestbooky-backup/guestbooky-backup.go
FROM alpine:latest
2025-01-27 06:14:26 +01:00
WORKDIR /root
COPY --from=builder /app/guestbooky-backup .
2025-01-27 06:14:26 +01:00
RUN chmod +x /root/guestbooky-backup
2025-01-27 06:14:26 +01:00
CMD ["./guestbooky-backup"]