fix: change imagePullPolicy to IfNotPresent for local images

This commit is contained in:
Chris Rai
2026-01-31 00:48:44 -05:00
parent f4219e95e9
commit 4e164e97b5
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ spec:
containers: containers:
- name: gateway - name: gateway
image: localhost:32000/gateway:latest image: localhost:32000/gateway:latest
imagePullPolicy: Always imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 8077 - containerPort: 8077
name: http name: http

View File

@@ -25,7 +25,7 @@ COPY services/gateway/ ./services/gateway/
WORKDIR /app/services/gateway WORKDIR /app/services/gateway
RUN --mount=type=cache,target=/go/pkg/mod \ RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \ --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 . go build -ldflags="-s -w" -trimpath -o /gateway .
# Runtime stage - distroless for minimal attack surface # Runtime stage - distroless for minimal attack surface