Files
HeatGuard/Dockerfile
vikingowl 961fbed6c3 feat(helm): update image registry, enable HTTPRoute, autoscaling, and refactor Dockerfile
- Use custom image registry (somegit.dev) with pull secrets and "latest" tag.
- Enable HTTPRoute with hostname "heatguard.dev" and TLS via cert-manager.
- Activate autoscaling with min/max replicas and resource metrics.
- Switch Dockerfile to Alpine runtime with nonroot user.
- Add helm directory to .dockerignore.
2026-02-10 20:25:34 +01:00

28 lines
366 B
Docker

FROM golang:1.25-alpine AS build
RUN apk add --no-cache nodejs npm make
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN make build
FROM alpine:3
RUN adduser -D -u 65532 nonroot
COPY --from=build /src/bin/heatguard /heatguard
EXPOSE 8080
USER nonroot:nonroot
ENTRYPOINT ["/heatguard"]