代码拉取完成,页面将自动刷新
FROM centos:7
LABEL maintainer="Lovell Fuller <npm@lovell.info>"
# Create CentOS 7 (glibc 2.17) container suitable for building Linux x64 binaries
# Path settings
ENV \
RUSTUP_HOME="/usr/local/rustup" \
CARGO_HOME="/usr/local/cargo" \
PATH="/usr/local/cargo/bin:/opt/rh/devtoolset-9/root/usr/bin:$PATH"
# Build dependencies
RUN \
yum update -y && \
yum install -y epel-release centos-release-scl && \
yum group install -y "Development Tools" && \
yum install -y --setopt=tsflags=nodocs \
advancecomp \
brotli \
cmake3 \
devtoolset-9-gcc \
devtoolset-9-gcc-c++ \
glib2-devel \
gobject-introspection-devel \
gperf \
gtk-doc \
jq \
nasm \
ninja-build \
prelink \
python3 \
&& \
curl https://sh.rustup.rs -sSf | sh -s -- -y \
--no-modify-path \
--profile minimal \
&& \
ln -s /usr/bin/cmake3 /usr/bin/cmake && \
pip3 install meson==0.55.3
# Compiler settings
ENV \
PLATFORM="linux-x64" \
FLAGS="-O3 -fPIC" \
MESON="--cross-file=/root/meson.ini"
COPY Toolchain.cmake /root/
COPY meson.ini /root/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。