forked from criteo/JVips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
60 lines (53 loc) · 1.37 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
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM fedora:rawhide
# Set default build arguments.
ARG NODE_VERSION=10.x
# Set default user (overriden in the command line with Jenkins' actual user).
ARG UNAME=jenkins
ARG UID=1000
ARG GID=1000
# Set default environment variables.
ENV JAVA_HOME=/usr/lib/jvm/java-1.8.0
ENV PATH="${OSX_CROSS_HOME}/bin:${PATH}"
ENV YUM_OPTIONS="-y --setopt=skip_missing_names_on_install=False"
# Install system dependencies.
RUN yum install ${YUM_OPTIONS} \
wget \
git \
make \
cmake \
maven \
meson \
ninja-build \
patch \
gcc-c++ \
clang \
nasm \
autoconf \
automake \
libtool \
diffutils \
openssl-devel \
expat-devel \
zlib-devel \
libxml2-devel \
xz xz-devel \
mpfr-devel \
gmp-devel \
libmpc-devel \
gtk-doc \
gobject-introspection gobject-introspection-devel \
glib2.x86_64 glib2-devel.x86_64 \
java-1.8.0-openjdk \
mingw-w64-tools \
mingw64-gcc \
mingw64-gcc-c++ \
mingw64-glib2 \
mingw64-win-iconv \
mingw64-expat
# Link the system version of libmpfr, which is more recent than expected, but works fine.
RUN ln -s /lib64/libmpfr.so.6 /lib64/libmpfr.so.4
# Switch to a non-root user.
RUN groupadd -g $GID -o $UNAME
RUN useradd -l -m -u $UID -g $GID -o -s /bin/bash -d /home/$UNAME $UNAME
USER $UNAME
CMD build.sh