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

+46 -1
View File
@@ -1,5 +1,5 @@
#comment
FROM --platform=linux/amd64 alpine:3.24.2
FROM --platform=linux/amd64 alpine:3.24.4
MAINTAINER Scott E. Graves <scott.e.graves@protonmail.com>
CMD bash
@@ -16,6 +16,7 @@ RUN apk add \
boost-dev \
bzip2-static \
cmake \
curl \
diffutils \
elfutils-dev \
file \
@@ -83,3 +84,47 @@ RUN apk add \
RUN ln -sf /usr/bin/aclocal-1.18 /usr/bin/aclocal-1.16
RUN ln -sf /usr/bin/automake-1.18 /usr/bin/automake-1.16
ARG ICU_VERSION
ENV MY_ICU_VERSION=${ICU_VERSION}
COPY ./3rd_party/mingw64/icu-release-${ICU_VERSION}.tar.gz ./3rd_party/mingw64/icu-release-${ICU_VERSION}.tar.gz.sha256 /tmp/
RUN test -n "${MY_ICU_VERSION}" \
&& cd /tmp \
&& sha256sum -c ./icu-release-${MY_ICU_VERSION}.tar.gz.sha256 \
&& tar xzf ./icu-release-${MY_ICU_VERSION}.tar.gz \
&& cd icu-release-${MY_ICU_VERSION}/icu4c/source \
&& CXXFLAGS="-std=gnu++17" ./configure \
--disable-samples \
--disable-tests \
--enable-shared \
--enable-static \
--prefix=/usr/local \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf icu-release-${MY_ICU_VERSION} icu-release-${MY_ICU_VERSION}.tar.gz*
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-toolchain "${RUST_VERSION}" \
&& rm /tmp/rustup-init.sh
ARG GID
ARG UID
RUN chown -R "${UID}:${GID}" /opt/rustup
RUN chown -R "${UID}:${GID}" /opt/cargo
RUN rustc --version \
&& cargo --version \
&& rustup target list --installed
-48
View File
@@ -1,48 +0,0 @@
#comment
FROM debian:latest
ARG UID=0
ARG GID=0
RUN apt-get update
RUN apt-get install -y \
bash \
curl \
fonts-droid-fallback \
gdb \
git \
lib32stdc++6-x32-cross \
libglu1-mesa \
libstdc++6 \
python3 \
unzip \
wget
RUN apt-get clean
RUN git clone https://github.com/flutter/flutter.git /flutter
RUN git config --system --add safe.directory /flutter
ENV PATH="/flutter/bin:/flutter/bin/cache/dart-sdk/bin:${PATH}"
RUN flutter doctor -v
RUN flutter channel master
RUN flutter upgrade
RUN flutter --disable-analytics
RUN flutter config --no-analytics
RUN flutter config --enable-web
RUN flutter config --no-cli-animations
RUN mkdir /nonexistent
RUN chown -R $UID:$GID /nonexistent
RUN mkdir /.config
RUN chown -R $UID:$GID /.config
RUN mkdir /.dart-tool
RUN chown -R $UID:$GID /.dart-tool
RUN mkdir /.pub-cache
RUN chown -R $UID:$GID /.pub-cache
RUN chown -R $UID:$GID /flutter
+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