gh2fg/Dockerfile
Justin Hammond fb584061ee
Some checks failed
build / Build (push) Failing after 2m31s
Split build out
2025-02-12 17:06:10 +08:00

22 lines
412 B
Docker

FROM golang:1.23-alpine as builder
ENV CGO_ENABLED 0
ENV GOOS linux
WORKDIR /build/zero
ADD . .
RUN apk update --no-cache && apk add --no-cache git && go mod download
RUN go build -v -o /app/gh2fg .
FROM alpine
RUN apk update --no-cache && apk add --no-cache ca-certificates tzdata
ENV TZ Asia/Singapore
WORKDIR /app
COPY --from=builder /app/gh2fg /app/gh2fg
VOLUME ["/app/etc/"]
ENTRYPOINT ["./gh2fg"]