forked from lovell/sharp-libvips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
47 lines (42 loc) · 1.07 KB
/
Dockerfile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM centos:7
LABEL maintainer="Lovell Fuller <[email protected]>"
# 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
# Compiler settings
ENV \
PLATFORM="linux-x64" \
FLAGS="-march=westmere" \
MESON="--cross-file=/root/meson.ini"
COPY Toolchain.cmake /root/
COPY meson.ini /root/