Skip to content

Commit b53f31f

Browse files
authored
Fix Deploy-Update-Playground-environment-stg Cloud Build trigger (#35871)
Fix Deploy-Update-Playground-environment-stg Cloud Build trigger
2 parents afe94ad + b2a3ea4 commit b53f31f

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

playground/backend/containers/router/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,19 @@ RUN cd cmd/migration_tool &&\
4444
go build -o /go/bin/migration_tool
4545

4646
# Null image
47-
FROM debian:stable-20221114-slim
47+
FROM debian:bullseye-slim
4848

49+
ENV DEBIAN_FRONTEND=noninteractive
4950
# Install deps being used by sh files
50-
RUN apt-get update \
51-
&& apt-get install -y --no-install-recommends \
52-
ca-certificates \
53-
curl \
54-
&& apt-get autoremove -yqq --purge \
55-
&& apt-get clean \
56-
&& rm -rf /var/lib/apt/lists/*
51+
RUN set -eux; \
52+
# 1) use existing HTTP sources to bootstrap CAs
53+
apt-get update; \
54+
apt-get install -y --no-install-recommends ca-certificates; \
55+
# 2) now it’s safe to use HTTPS
56+
sed -ri 's|http://deb\.debian\.org|https://deb.debian.org|g' /etc/apt/sources.list; \
57+
apt-get update; \
58+
apt-get install -y --no-install-recommends curl; \
59+
rm -rf /var/lib/apt/lists/*
5760

5861
# Set Environment
5962
ENV SERVER_IP=0.0.0.0

0 commit comments

Comments
 (0)