fix: change imagePullPolicy to IfNotPresent for local images
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user