File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 7878 cd ../../Boka
7979
8080 # Build Swift release binary with our static libraries
81- swift build -c release \
81+ swift build -c release -Xswiftc -Onone -Xswiftc -whole-module-optimization -Xswiftc -package-cmo -Xswiftc -unavailable-decl-optimization=complete \
8282 -Xlinker "$STATIC_LIB_DIR/lib/librocksdb.a" \
8383 -Xlinker "$STATIC_LIB_DIR/lib/liblz4.a" \
8484 -Xlinker "$STATIC_LIB_DIR/lib/libzstd.a" \
Original file line number Diff line number Diff line change 1- 6.0
1+ 6.1
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ FROM swift:6.1-noble AS builder
22WORKDIR /boka
33
44RUN apt-get update && \
5- apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
6- apt-get install -y curl build-essential cmake librocksdb-dev libzstd-dev libbz2-dev liblz4-dev
5+ apt-get dist-upgrade -y -o Dpkg::Options::="--force-confold" && \
6+ apt-get install -y curl build-essential cmake librocksdb-dev libzstd-dev libbz2-dev liblz4-dev
77
88# install rust
99RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
@@ -17,7 +17,7 @@ RUN make deps
1717
1818WORKDIR /boka/Boka
1919
20- RUN swift build -c release
20+ RUN swift build -c release -Xswiftc -Onone -Xswiftc -whole-module-optimization -Xswiftc -package-cmo -Xswiftc -unavailable-decl-optimization=complete
2121
2222RUN cp $(swift build --show-bin-path -c release)/Boka /boka/boka-bin
2323
@@ -50,7 +50,7 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
5050 pkg-config \
5151 tzdata \
5252 zlib1g-dev \
53- librocksdb-dev \
53+ librocksdb-dev \
5454 && rm -r /var/lib/apt/lists/*
5555
5656# Everything up to here should cache nicely between Swift versions, assuming dev dependencies change little
@@ -105,7 +105,7 @@ COPY --from=builder /boka/boka-bin /usr/local/bin/boka
105105
106106# checks
107107RUN ldd /usr/local/bin/boka && \
108- /usr/local/bin/boka --help
108+ /usr/local/bin/boka --help
109109
110110USER boka
111111
You can’t perform that action at this time.
0 commit comments