File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed
Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -24,15 +24,32 @@ RUN envsubst < /workspace/schema.yaml > /workspace/schema.yaml.processed && \
2424# Stage 2: Deployer
2525FROM gcr.io/cloud-marketplace-tools/k8s/deployer_envsubst:latest
2626
27- ARG TERRAFORM_VERSION=1.5.7
27+ ARG TERRAFORM_VERSION=1.10.3
28+ ARG YQ_VERSION=4.44.6
2829
29- RUN apt-get update && apt-get install -y wget unzip git jq && \
30+ # Update base system and install security patches
31+ RUN apt-get update && \
32+ apt-get upgrade -y && \
33+ apt-get install -y --no-install-recommends \
34+ ca-certificates \
35+ wget \
36+ unzip \
37+ git \
38+ jq && \
39+ # Install Terraform
3040 wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
3141 unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin/ && \
3242 rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
33- wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 && \
43+ # Install yq with specific version
44+ wget -O /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v${YQ_VERSION}/yq_linux_amd64 && \
3445 chmod +x /usr/local/bin/yq && \
35- apt-get remove -y wget unzip && apt-get autoremove -y && apt-get clean
46+ # Upgrade pip to latest version to fix CVE-2024-35195 and CVE-2025-47273
47+ python3 -m pip install --upgrade pip setuptools wheel --no-cache-dir && \
48+ # Clean up
49+ apt-get remove -y wget unzip && \
50+ apt-get autoremove -y && \
51+ apt-get clean && \
52+ rm -rf /var/lib/apt/lists/*
3653
3754LABEL com.googleapis.cloudmarketplace.product.service.name=services/stackgen-enterprise-platform-k8s-v2.endpoints.stackgen-gcp-marketplace.cloud.goog
3855
You can’t perform that action at this time.
0 commit comments