forked from oxidize-rb/rb-sys
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.x64-mingw32
More file actions
28 lines (24 loc) · 1.2 KB
/
Dockerfile.x64-mingw32
File metadata and controls
28 lines (24 loc) · 1.2 KB
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
# Ensure this version matches the rack-compiler-version in Gemfile
FROM ghcr.io/rake-compiler/rake-compiler-dock-image:1.11.0-mri-x64-mingw32
ENV RUBY_TARGET="x64-mingw32" \
RUST_TARGET="x86_64-pc-windows-gnu" \
RUSTUP_DEFAULT_TOOLCHAIN="stable" \
PKG_CONFIG_ALLOW_CROSS="1" \
RUSTUP_HOME="/usr/local/rustup" \
CARGO_HOME="/usr/local/cargo" \
PATH="/usr/local/cargo/bin:$PATH" \
BINDGEN_EXTRA_CLANG_ARGS_x86_64_pc_windows_gnu="--sysroot=/usr/x86_64-w64-mingw32 -I/usr/lib/llvm-10/lib/clang/10.0.0/include" \
LIBCLANG_PATH="/usr/lib/llvm-10/lib/" \
CC_x86_64_pc_windows_gnu="x86_64-w64-mingw32-gcc" \
CXX_x86_64_pc_windows_gnu="x86_64-w64-mingw32-g++" \
AR_x86_64_pc_windows_gnu="x86_64-w64-mingw32-ar" \
PKG_CONFIG_PATH_x86_64_pc_windows_gnu="/usr/x86_64-w64-mingw32/pkgconfig" \
CMAKE_x86_64_pc_windows_gnu="/opt/cmake/bin/cmake"
COPY setup/lib.sh setup/rustup.sh setup/rubygems.sh setup/cmake.sh setup/rubybashrc.sh setup/rb-sys-dock.sh setup/delete-unused-files.sh /
RUN bash -c "source /lib.sh && install_packages libclang-dev" && \
/rustup.sh && \
/rubygems.sh && \
/cmake.sh && \
/rubybashrc.sh && \
/delete-unused-files.sh && \
/rb-sys-dock.sh