-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.Dockerfile
103 lines (89 loc) · 2.13 KB
/
build.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
ARG IMAGE
ARG PREFIX=/usr/local
FROM ${IMAGE} as builder
ARG DEBIAN_FRONTEND=noninteractive
ARG BLAS
ARG COMPILER
ARG COMPILER_VERSION
ARG CXX_STDLIB
ENV COMPILER=${COMPILER} \
COMPILER_VERSION=${COMPILER_VERSION} \
CXX_STDLIB=${CXX_STDLIB}
RUN CXX_STDLIB_VERSION=${CXX_STDLIB:+$COMPILER_VERSION} \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
dpkg-dev \
"${CXX_STDLIB:-g++}${CXX_STDLIB_VERSION:+-}${CXX_STDLIB_VERSION}${CXX_STDLIB:+-dev}" \
libc6-dev \
make \
ca-certificates \
"${COMPILER:-gcc}${COMPILER_VERSION:+-}${COMPILER_VERSION}" \
gfortran \
libbz2-* \
'^libcurl[3|4]$' \
libicu* \
'^libjpeg.*-turbo.*' \
liblzma* \
"${BLAS:-liblapack-dev}" \
libpangocairo-* \
libpaper-utils \
'^libpcre[2|3]*' \
libpng-dev \
libreadline-dev \
'^libtiff[5|6]$' \
unzip \
zip \
zlib1g \
&& BUILDDEPS="curl \
default-jdk \
#libbz2-dev \
libcairo2-dev \
libcurl4-openssl-dev \
libpango1.0-dev \
libjpeg-dev \
libicu-dev \
#libpcre2-dev \
#libpng-dev \
#libreadline-dev \
libtiff-dev \
#liblzma-dev \
libx11-dev \
libxt-dev \
perl \
rsync \
subversion \
tcl-dev \
tk-dev \
texinfo \
texlive-extra-utils \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-recommended \
texlive-latex-extra \
x11proto-core-dev \
xauth \
xfonts-base \
xvfb \
wget \
zlib1g-dev" \
&& apt-get install -y --no-install-recommends ${BUILDDEPS}
COPY patches/* /tmp/
COPY scripts/*.sh /usr/bin/
ARG R_VERSION
ARG CONFIG_ARGS="--enable-R-shlib \
--enable-memory-profiling \
--with-readline \
--with-blas \
--with-lapack \
--with-tcltk \
--with-recommended-packages"
ARG PREFIX
ARG MODE=install-strip
RUN start.sh
FROM scratch
LABEL org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://gitlab.b-data.ch/r/rsi" \
org.opencontainers.image.vendor="b-data GmbH" \
org.opencontainers.image.authors="Olivier Benz <[email protected]>"
ARG PREFIX
COPY --from=builder ${PREFIX} ${PREFIX}