Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 1b1d447

Browse files
committed
Switch to Debian for Docker image
1 parent 95a1340 commit 1b1d447

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
FROM rustlang/rust:nightly-alpine3.21 as build
1+
FROM rustlang/rust:nightly-bookworm as build
22

33
WORKDIR /scripty
44

55
COPY . .
66

7-
RUN apk add clang mold autoconf libtool automake make cmake
7+
RUN apt update -y
8+
RUN apt install -y clang mold libopus-dev libopus0
89

910
ENV RUSTFLAGS="--emit=asm --cfg tokio_unstable -Clink-arg=-fuse-ld=mold -Zshare-generics=y"
1011
ENV SQLX_OFFLINE=1
1112

12-
# There's no libopus.a whatsoever in the alpine repositories, so we're forced to build from source
13-
# Half the installed packages above are *just* for opus
14-
ENV LIBOPUS_NO_PKG=1
1513

1614
RUN cargo build --release
1715

18-
FROM alpine:3.21
16+
FROM debian:bookworm-slim
17+
18+
COPY --from=build /usr/lib/x86_64-linux-gnu/libopus.so.0.8.0 /usr/lib/x86_64-linux-gnu/libopus.so.0.8.0
19+
COPY --from=build /usr/lib/x86_64-linux-gnu/libopus.so.0 /usr/lib/x86_64-linux-gnu/libopus.so.0
1920

2021
WORKDIR /app
2122
COPY --from=build /scripty/target/release/scripty_v2 .

0 commit comments

Comments
 (0)