File tree Expand file tree Collapse file tree 13 files changed +27
-51
lines changed Expand file tree Collapse file tree 13 files changed +27
-51
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ kind: Config
1717metadata :
1818 name : app
1919build :
20- platforms : ["linux/amd64", "linux/arm64"]
2120 artifacts :
2221 # image tags are relative; to specify an image repo (e.g. GCR), you
2322 # must provide a "default repo" using one of the methods described
5049 tagPolicy :
5150 gitCommit : {}
5251 local :
53- useDockerCLI : true
54- useBuildkit : true
52+ useBuildkit : false
5553manifests :
5654 kustomize :
5755 paths :
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM eclipse-temurin:21.0.5_11-jdk @sha256:a20cfa6afdbf57ff2c4de77ae2d0e3725a6349f1936b5ad7c3d1b06f6d1b840a AS builder
15+ FROM eclipse-temurin:21@sha256:b5fc642f67dbbd1c4ce811388801cb8480aaca8aa9e56fd6dcda362cfea113f1 AS builder
1616
1717WORKDIR /app
1818
@@ -25,7 +25,7 @@ COPY . .
2525RUN chmod +x gradlew
2626RUN ./gradlew installDist
2727
28- FROM eclipse-temurin:21.0.5_11 -jre-alpine@sha256:4300bfe1e11f3dfc3e3512f39939f9093cf18d0e581d1ab1ccd0512f32fe33f0
28+ FROM eclipse-temurin:21.0.4_7 -jre-alpine@sha256:8cc1202a100e72f6e91bf05ab274b373a5def789ab6d9e3e293a61236662ac27
2929
3030# @TODO: https://github.com/GoogleCloudPlatform/microservices-demo/issues/2517
3131# Download Stackdriver Profiler Java agent
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515# https://mcr.microsoft.com/product/dotnet/sdk
16- FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0.101-noble@sha256:1f13e67d295e02abdfd187c341f887442bad611eda536766172ced401fc8b9fa AS builder
17- ARG TARGETARCH
16+ FROM mcr.microsoft.com/dotnet/sdk:9.0.100-noble@sha256:bd0365368f46274500ebb086f491703052b8ce23e3d52d3233a23b2020730057 AS builder
1817WORKDIR /app
1918COPY cartservice.csproj .
2019RUN dotnet restore cartservice.csproj \
21- -a $TARGETARCH
20+ -r linux-x64
2221COPY . .
2322RUN dotnet publish cartservice.csproj \
2423 -p:PublishSingleFile=true \
25- -a $TARGETARCH \
24+ -r linux-x64 \
2625 --self-contained true \
2726 -p:PublishTrimmed=true \
2827 -p:TrimMode=full \
2928 -c release \
3029 -o /cartservice
3130
3231# https://mcr.microsoft.com/product/dotnet/runtime-deps
33- FROM mcr.microsoft.com/dotnet/runtime-deps:9.0.1 -noble-chiseled@sha256:6f7466eda39e24efaf7eab2325e15d776a685d13cc93b4ea0cde9ee4f7982210
32+ FROM mcr.microsoft.com/dotnet/runtime-deps:9.0.0 -noble-chiseled@sha256:5cc893809e2d2869e1a98c1eecc4c6ff6978d53bc3e5342014eff28a058867a4
3433
3534WORKDIR /app
3635COPY --from=builder /cartservice .
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16- ARG TARGETOS
17- ARG TARGETARCH
15+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
1816WORKDIR /src
1917
2018# restore dependencies
@@ -25,7 +23,7 @@ COPY . .
2523
2624# Skaffold passes in debug-oriented compiler flags
2725ARG SKAFFOLD_GO_GCFLAGS
28- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /checkoutservice .
26+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /checkoutservice .
2927
3028FROM scratch
3129
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM node:20.18.1 -alpine@sha256:24fb6aa7020d9a20b00d6da6d1714187c45ed00d1eb4adb01395843c338b9372 AS builder
15+ FROM node:20.17.0 -alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 AS builder
1616
1717# Some packages (e.g. @google-cloud/profiler) require additional
1818# deps for post-install scripts
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM python:3.12.8 -alpine@sha256:54bec49592c8455de8d5983d984efff76b6417a6af9b5dcc8d0237bf6ad3bd20 AS base
15+ FROM python:3.12.7 -alpine@sha256:b83d5ec7274bee17d2f4bd0bfbb082f156241e4513f0a37c70500e1763b1d90d AS base
1616
1717FROM base AS builder
1818
1919RUN apk update \
20- && apk add --no-cache g++ linux-headers \
20+ && apk add --no-cache wget g++ \
2121 && rm -rf /var/cache/apk/*
2222
2323# get packages
@@ -30,10 +30,6 @@ ENV PYTHONUNBUFFERED=1
3030# Enable Profiler
3131ENV ENABLE_PROFILER=1
3232
33- RUN apk update \
34- && apk add --no-cache libstdc++ \
35- && rm -rf /var/cache/apk/*
36-
3733WORKDIR /email_server
3834
3935# Grab packages from builder
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16- ARG TARGETOS
17- ARG TARGETARCH
15+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
1816WORKDIR /src
1917
2018# restore dependencies
@@ -24,7 +22,7 @@ COPY . .
2422
2523# Skaffold passes in debug-oriented compiler flags
2624ARG SKAFFOLD_GO_GCFLAGS
27- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /go/bin/frontend .
25+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /go/bin/frontend .
2826
2927FROM scratch
3028WORKDIR /src
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM python:3.12.8-alpine @sha256:54bec49592c8455de8d5983d984efff76b6417a6af9b5dcc8d0237bf6ad3bd20 AS base
15+ FROM python:3.12.6-slim @sha256:ad48727987b259854d52241fac3bc633574364867b8e20aec305e6e7f4028b26 AS base
1616
1717FROM base AS builder
1818
19- RUN apk update \
20- && apk add --no-cache wget g++ linux-headers \
21- && rm -rf /var/cache/apk/*
22-
2319COPY requirements.txt .
2420
2521RUN pip install --prefix="/install" -r requirements.txt
2622
2723FROM base
2824
29- RUN apk update \
30- && apk add --no-cache libstdc++ \
31- && rm -rf /var/cache/apk/*
32-
3325WORKDIR /loadgen
3426
3527COPY --from=builder /install /usr/local
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM node:20.18.1 -alpine@sha256:24fb6aa7020d9a20b00d6da6d1714187c45ed00d1eb4adb01395843c338b9372 AS builder
15+ FROM node:20.17.0 -alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 AS builder
1616
1717# Some packages (e.g. @google-cloud/profiler) require additional
1818# deps for post-install scripts
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- FROM --platform=$BUILDPLATFORM golang:1.23.4-alpine@sha256:c23339199a08b0e12032856908589a6d41a0dab141b8b3b21f156fc571a3f1d3 AS builder
16- ARG TARGETOS
17- ARG TARGETARCH
15+ FROM golang:1.23.2-alpine@sha256:9dd2625a1ff2859b8d8b01d8f7822c0f528942fe56cfe7a1e7c38d3b8d72d679 AS builder
1816
1917WORKDIR /src
2018# restore dependencies
@@ -24,7 +22,7 @@ COPY . .
2422
2523# Skaffold passes in debug-oriented compiler flags
2624ARG SKAFFOLD_GO_GCFLAGS
27- RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /productcatalogservice .
25+ RUN CGO_ENABLED=0 GOOS=linux go build -gcflags="${SKAFFOLD_GO_GCFLAGS}" -o /productcatalogservice .
2826
2927FROM scratch
3028
You can’t perform that action at this time.
0 commit comments