-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathDockerfile.x86_64-linux-musl
28 lines (25 loc) · 1.32 KB
/
Dockerfile.x86_64-linux-musl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ghcr.io/rake-compiler/rake-compiler-dock-image:1.8.0-mri-x86_64-linux-musl
ENV RUBY_CC_VERSION="3.4.1:3.3.5:3.2.6:3.1.6:3.0.7:2.7.8:2.6.10" \
RUBY_TARGET="x86_64-linux-musl" \
RUST_TARGET="x86_64-unknown-linux-musl" \
RUSTUP_DEFAULT_TOOLCHAIN="stable" \
RUSTUP_HOME="/usr/local/rustup" \
CARGO_HOME="/usr/local/cargo" \
CARGO_BUILD_TARGET="x86_64-unknown-linux-musl" \
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_RUSTFLAGS="-C target-feature=-crt-static" \
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER="x86_64-unknown-linux-musl-gcc" \
PKG_CONFIG_ALLOW_CROSS="1" \
PATH="/usr/local/cargo/bin:/usr/local/musl/bin:$PATH" \
LIBCLANG_PATH="/usr/lib/llvm-12/lib" \
CC_x86_64_unknown_linux_musl="x86_64-unknown-linux-musl-gcc" \
CXX_x86_64_unknown_linux_musl="x86_64-unknown-linux-musl-g++" \
AR_x86_64_unknown_linux_musl="x86_64-unknown-linux-musl-ar" \
BINDGEN_EXTRA_CLANG_ARGS_x86_64_unknown_linux_musl="--sysroot=/usr/x86_64-unknown-linux-musl" \
CMAKE_x86_64_unknown_linux_musl="cmake"
COPY setup/lib.sh setup/rustup.sh setup/rubygems.sh setup/cmake.sh setup/rubybashrc.sh setup/rb-sys-dock.sh /
RUN bash -c "source /lib.sh && install_packages libclang-12-dev llvm-12-dev" && \
/rustup.sh && \
/rubygems.sh && \
/cmake.sh && \
/rubybashrc.sh && \
/rb-sys-dock.sh