FROM golang:1.23-alpine AS builder WORKDIR /build COPY go.mod go.sum ./ RUN go mod download COPY *.go ./ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -trimpath -o /Freebuff2API . FROM alpine:3.20 RUN apk add --no-cache ca-certificates tzdata COPY --from=builder /Freebuff2API /usr/local/bin/Freebuff2API RUN ln -s /usr/local/bin/Freebuff2API # Expose proxy port ENV LISTEN_ADDR=:7860 EXPOSE 7860 ENTRYPOINT ["Freebuff2API"]