forked from lovell/sharp-libvips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (34 loc) · 936 Bytes
/
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
FROM centos:7
MAINTAINER Lovell Fuller <[email protected]>
# Create CentOS 7 (glibc 2.17) container suitable for building Linux x64 binaries
# 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 \
cmake3 \
devtoolset-8-gcc \
devtoolset-8-gcc-c++ \
git \
glib-devel \
gperf \
gtk-doc \
jq \
nasm \
prelink \
patchelf \
ninja-build && \
curl https://sh.rustup.rs -sSf | sh -s -- -y && \
ln -s /usr/bin/cmake3 /usr/bin/cmake && \
ln -s /usr/bin/ninja-build /usr/bin/ninja && \
pip3 install meson==0.52.1
# Compiler settings
ENV \
CC="/opt/rh/devtoolset-8/root/usr/bin/gcc" \
CXX="/opt/rh/devtoolset-8/root/usr/bin/g++" \
PATH="/root/.cargo/bin:$PATH" \
PLATFORM="linux-x64" \
FLAGS="-O3"
COPY Toolchain.cmake /root/