This repository has been archived on 2026-04-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

18 lines
293 B
Docker
Raw Permalink Normal View History

FROM golang:1.25-alpine AS builder
2025-08-23 20:20:50 +05:30
WORKDIR /app
COPY go.mod main.go ./
RUN CGO_ENABLED=0 go build -o server .
2025-08-23 20:20:50 +05:30
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /app/server /server
USER 65534:65534
EXPOSE 4050
ENTRYPOINT ["/server"]