From 4e164e97b528c924886ef43ad196a719beca2cb3 Mon Sep 17 00:00:00 2001 From: Chris Rai Date: Sat, 31 Jan 2026 00:48:44 -0500 Subject: [PATCH] fix: change imagePullPolicy to IfNotPresent for local images --- deploy/overlays/development/services/gateway/deployment.yaml | 2 +- services/gateway/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/overlays/development/services/gateway/deployment.yaml b/deploy/overlays/development/services/gateway/deployment.yaml index a40864a..dcf9eb5 100644 --- a/deploy/overlays/development/services/gateway/deployment.yaml +++ b/deploy/overlays/development/services/gateway/deployment.yaml @@ -20,7 +20,7 @@ spec: containers: - name: gateway image: localhost:32000/gateway:latest - imagePullPolicy: Always + imagePullPolicy: IfNotPresent ports: - containerPort: 8077 name: http diff --git a/services/gateway/Dockerfile b/services/gateway/Dockerfile index deabdc3..484c3da 100644 --- a/services/gateway/Dockerfile +++ b/services/gateway/Dockerfile @@ -25,7 +25,7 @@ COPY services/gateway/ ./services/gateway/ WORKDIR /app/services/gateway RUN --mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/root/.cache/go-build \ - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \ + CGO_ENABLED=0 GOOS=linux \ go build -ldflags="-s -w" -trimpath -o /gateway . # Runtime stage - distroless for minimal attack surface