Goff/Dockerfile
WayfinderAK cf6b7eae81
Some checks failed
Build and Push Container / docker (push) Has been cancelled
Migrate deployment to Gitea Actions and Portainer
2026-03-22 11:43:22 -08:00

19 lines
405 B
Docker

FROM golang:1.22-alpine AS builder
WORKDIR /src
RUN apk add --no-cache ca-certificates git tzdata
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ARG TARGETARCH=amd64
RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -o /out/goff ./cmd/goff
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
COPY --from=builder /out/goff /usr/local/bin/goff
ENTRYPOINT ["/usr/local/bin/goff"]