updated build system

This commit is contained in:
sgraves committed 2026-11-22 18:45:45 -06:00
1 parent 41fe87d90a
commit 98e64770fb
26 files changed
+472 -26

No files matched your search

+33 -1
View File
@@ -1,5 +1,5 @@
#comment
FROM --platform=linux/amd64 alpine:3.24.2
FROM --platform=linux/amd64 alpine:3.24.4
RUN apk update
RUN apk upgrade
@@ -11,6 +11,7 @@ RUN apk add \
binutils \
bison \
bzip2 \
ca-certificates \
clang21-extra-tools \
cmake \
curl \
@@ -1193,6 +1194,37 @@ RUN (cp ${MY_MINGW_DIR}/lib/*.dll ${MY_MINGW_DIR}/bin || echo "no dll's found")
&& rm -rf /3rd_party \
&& rm -rf /root/.wine
ARG RUST_VERSION=stable
ENV RUSTUP_HOME=/opt/rustup
ENV CARGO_HOME=/opt/cargo
ENV PATH="/opt/cargo/bin:${PATH}"
RUN curl --proto '=https' --tlsv1.2 -fsSL \
https://sh.rustup.rs -o /tmp/rustup-init.sh \
&& sh /tmp/rustup-init.sh \
-y \
--no-modify-path \
--profile minimal \
--default-host x86_64-unknown-linux-musl \
--default-toolchain "${RUST_VERSION}" \
--target x86_64-pc-windows-gnu \
&& rm /tmp/rustup-init.sh
ENV CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER="${MY_MINGW_PREFIX}-gcc"
ENV CC_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-gcc"
ENV CXX_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-g++"
ENV AR_x86_64_pc_windows_gnu="${MY_MINGW_PREFIX}-ar"
RUN rustc --version \
&& cargo --version \
&& rustup target list --installed
ARG GID
ARG UID
RUN chown -R "${UID}:${GID}" /opt/rustup
RUN chown -R "${UID}:${GID}" /opt/cargo
USER $USERNAME
WORKDIR /home/$USERNAME