updated build system
This commit is contained in:
1 parent
41fe87d90a
commit
98e64770fb
26 files changed
+472
-26
No files matched your search
+46
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user