From c56310d219a9a5fc808616985cd279fb08f647f7 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sat, 15 Aug 2026 23:15:29 -0700 Subject: [PATCH] Add Dockerfile and dockerignore for Cloud Run deployment --- .dockerignore | 7 +++++++ Dockerfile | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..736d241 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.git +creds/ +docs/ +sampledata/ +screenshots/ +Dockerfile +LICENSE.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0915640 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.26 AS build +WORKDIR /src +COPY go.mod go.sum ./ +RUN go mod download +COPY . . +RUN CGO_ENABLED=0 go build -o /heliosian . + +FROM gcr.io/distroless/static-debian12 +WORKDIR /app +COPY --from=build /heliosian /app/heliosian +COPY web /app/web +ENTRYPOINT ["/app/heliosian"]