From e6e90b7b7d7e2a14c48a132dc7af41071f41e1b4 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 26 Mar 2026 20:42:48 -0700 Subject: [PATCH] Add Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8235bd5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.22 AS build +WORKDIR /src +COPY go.mod go.sum ./ +RUN go mod download +COPY . . +RUN CGO_ENABLED=0 go build -o /p . + +FROM scratch +COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +COPY --from=build /p /p +COPY static /static +ENTRYPOINT ["/p"]