fix: change imagePullPolicy to IfNotPresent for local images
This commit is contained in:
@@ -20,7 +20,7 @@ spec:
|
||||
containers:
|
||||
- name: gateway
|
||||
image: localhost:32000/gateway:latest
|
||||
imagePullPolicy: Always
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 8077
|
||||
name: http
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user