Add Dockerfile and dockerignore for Cloud Run deployment

This commit is contained in:
Ian Gulliver
2026-08-15 23:15:29 -07:00
parent b4baa415f8
commit c56310d219
2 changed files with 19 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
.git
creds/
docs/
sampledata/
screenshots/
Dockerfile
LICENSE.md
+12
View File
@@ -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"]