@@ -3,35 +3,25 @@ FROM debian:12
33RUN groupadd -g 998 build-user && \
44 useradd -m -r -u 998 -g build-user build-user
55
6- ENV DEBIAN_FRONTEND="noninteractive"
7-
8- RUN apt-get -y update && apt-get -y install \
9- build-essential \
10- clang \
11- cmake \
12- diffutils \
13- git \
14- icu-devtools \
15- libcurl4-openssl-dev \
16- libedit-dev \
17- libicu-dev \
18- libncurses-dev \
19- libpython3-dev \
20- libsqlite3-dev \
21- libxml2-dev \
22- ninja-build \
23- pkg-config \
24- python3-distutils \
25- python3-pip \
26- python3-pkg-resources \
27- python3-psutil \
28- rsync \
29- swig \
30- systemtap-sdt-dev \
31- tzdata \
32- uuid-dev \
33- zip \
34- libstdc++-12-dev
6+ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
7+ apt-get -q install -y \
8+ binutils-gold \
9+ curl \
10+ gpg \
11+ libicu-dev \
12+ libcurl4-openssl-dev \
13+ libedit-dev \
14+ libsqlite3-dev \
15+ libncurses-dev \
16+ libpython3-dev \
17+ libxml2-dev \
18+ pkg-config \
19+ uuid-dev \
20+ tzdata \
21+ git \
22+ gcc \
23+ libstdc++-12-dev \
24+ && rm -r /var/lib/apt/lists/*
3525
3626
3727ARG SWIFT_SIGNING_KEY=E813C892820A6FA13755B268F167DF1ACF9CE069
@@ -46,9 +36,6 @@ ENV SWIFT_PLATFORM=$SWIFT_PLATFORM \
4636 SWIFT_WEBROOT=$SWIFT_WEBROOT \
4737 SWIFT_PREFIX=$SWIFT_PREFIX
4838
49- COPY swift-ci/dependencies/requirements.txt /dependencies/
50- RUN pip3 install -r /dependencies/requirements.txt --break-system-packages
51-
5239RUN set -e; \
5340 ARCH_NAME="$(dpkg --print-architecture)" ; \
5441 url=; \
@@ -61,10 +48,7 @@ RUN set -e; \
6148 ;; \
6249 *) echo >&2 "error: unsupported architecture: '$ARCH_NAME'" ; exit 1 ;; \
6350 esac; \
64- # - Grab curl here so we cache better up above
65- export DEBIAN_FRONTEND=noninteractive \
66- && apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
67- && export $(curl -s ${SWIFT_WEBROOT}${OS_ARCH_SUFFIX}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/ ]/=/g' ) \
51+ export $(curl -s ${SWIFT_WEBROOT}${OS_ARCH_SUFFIX}/latest-build.yml | grep 'download:' | sed 's/:[^:\/\/ ]/=/g' ) \
6852 && export $(curl -s ${SWIFT_WEBROOT}${OS_ARCH_SUFFIX}/latest-build.yml | grep 'download_signature:' | sed 's/:[^:\/\/ ]/=/g' ) \
6953 && export DOWNLOAD_DIR=$(echo $download | sed "s/-${SWIFT_PLATFORM}${OS_ARCH_SUFFIX}.tar.gz//g" ) \
7054 && echo $DOWNLOAD_DIR > .swift_tag \
0 commit comments