1- FROM swift:6.0 -noble AS builder
1+ FROM swift:6.1 -noble AS builder
22WORKDIR /boka
33
44RUN apt-get update && \
@@ -29,13 +29,26 @@ WORKDIR /boka
2929FROM phusion/baseimage:noble-1.0.0
3030LABEL maintainer="hello@laminar.one"
3131
32- # from https://github.com/swiftlang/swift-docker/blob/38e4244ebab3d6a4e702fb30449827d6c28ee1fd /6.0 /ubuntu/24.04/slim /Dockerfile
32+ # from https://github.com/swiftlang/swift-docker/blob/fad056fa5f65f926323f0ff61129cb4e6b1eec11 /6.1 /ubuntu/24.04/Dockerfile
3333RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
3434 apt-get -q install -y \
35- libcurl4 \
36- libxml2 \
35+ binutils \
36+ git \
37+ unzip \
38+ gnupg2 \
39+ libc6-dev \
40+ libcurl4-openssl-dev \
41+ libedit2 \
42+ libgcc-13-dev \
43+ libpython3-dev \
44+ libsqlite3-0 \
45+ libstdc++-13-dev \
46+ libxml2-dev \
47+ libncurses-dev \
48+ libz3-dev \
49+ pkg-config \
3750 tzdata \
38- librocksdb -dev \
51+ zlib1g -dev \
3952 && rm -r /var/lib/apt/lists/*
4053
4154# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
@@ -45,8 +58,8 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
4558# uid [ unknown] Swift 6.x Release Signing Key <swift-infrastructure@forums.swift.org>
4659ARG SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F
4760ARG SWIFT_PLATFORM=ubuntu24.04
48- ARG SWIFT_BRANCH=swift-6.0. 1-release
49- ARG SWIFT_VERSION=swift-6.0. 1-RELEASE
61+ ARG SWIFT_BRANCH=swift-6.1-release
62+ ARG SWIFT_VERSION=swift-6.1-RELEASE
5063ARG SWIFT_WEBROOT=https://download.swift.org
5164
5265ENV SWIFT_SIGNING_KEY=$SWIFT_SIGNING_KEY \
@@ -70,21 +83,19 @@ RUN set -e; \
7083 SWIFT_WEBDIR="$SWIFT_WEBROOT/$SWIFT_BRANCH/$(echo $SWIFT_PLATFORM | tr -d .)$OS_ARCH_SUFFIX" \
7184 && SWIFT_BIN_URL="$SWIFT_WEBDIR/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM$OS_ARCH_SUFFIX.tar.gz" \
7285 && SWIFT_SIG_URL="$SWIFT_BIN_URL.sig" \
73- # - Grab curl and gpg here so we cache better up above
86+ # - Grab curl here so we cache better up above
7487 && export DEBIAN_FRONTEND=noninteractive \
75- && apt-get -q update && apt-get -q install -y curl gnupg && rm -rf /var/lib/apt/lists/* \
88+ && apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* \
7689 # - Download the GPG keys, Swift toolchain, and toolchain signature, and verify.
7790 && export GNUPGHOME="$(mktemp -d)" \
7891 && curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig \
7992 && gpg --batch --quiet --keyserver keyserver.ubuntu.com --recv-keys "$SWIFT_SIGNING_KEY" \
8093 && gpg --batch --verify swift.tar.gz.sig swift.tar.gz \
8194 # - Unpack the toolchain, set libs permissions, and clean up.
8295 && tar -xzf swift.tar.gz --directory / --strip-components=1 \
83- $SWIFT_VERSION-$SWIFT_PLATFORM$OS_ARCH_SUFFIX/usr/lib/swift/linux \
84- $SWIFT_VERSION-$SWIFT_PLATFORM$OS_ARCH_SUFFIX/usr/libexec/swift/linux \
85- && chmod -R o+r /usr/lib/swift /usr/libexec/swift \
96+ && chmod -R o+r /usr/lib/swift \
8697 && rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
87- && apt-get purge --auto-remove -y curl gnupg
98+ && apt-get purge --auto-remove -y curl
8899
89100RUN useradd -m -u 1001 -U -s /bin/sh -d /boka boka
90101
0 commit comments