19 lines
No EOL
367 B
Docker
19 lines
No EOL
367 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 /app
|
|
|
|
COPY --from=builder /app/guestbooky-backup .
|
|
RUN chmod +x /app/guestbooky-backup
|
|
|
|
CMD ["./app/guestbooky-backup"] |