-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-libs
41 lines (34 loc) · 1.73 KB
/
Dockerfile-libs
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
# -*- Dockerfile -*-
ARG ALPINE_VERSION=3.19
FROM alpine:${ALPINE_VERSION} AS build
ARG ALPINE_VERSION=3.19
USER root
WORKDIR /root
COPY aports/keys/gaborcsardi-673e2275.rsa.pub /etc/apk/keys/
RUN echo "https://github.com/r-hub/r-musl/releases/download/v${ALPINE_VERSION}" \
>> /etc/apk/repositories
RUN apk update && \
apk add zlib-r openssl-r curl-r libcurl-r xz-r ncurses-r readline-r \
pcre2-r bzip2-r openblas-r icu-r icu-r-data-en libpng-r \
libdeflate-r libjpeg-turbo-r tiff-r expat-r libffi-r brotli-r \
libxml2-r pixman-r util-linux-r fontconfig-r freetype-r \
fribidi-r glib-r cairo-r graphite2-r harfbuzz-r pango-r
# On x86_64 we need libgfortran compiled with -fPIC
RUN apk add curl
RUN if [ "`arch`" = "x86_64" ]; then \
curl -LO https://github.com/r-hub/r-musl/releases/download/0.0.1/gfortran-13.2.1_git20231014-r0.apk; \
curl -LO https://github.com/r-hub/r-musl/releases/download/0.0.1/gcc-13.2.1_git20231014-r0.apk; \
curl -LO https://github.com/r-hub/r-musl/releases/download/0.0.1/libgcc-13.2.1_git20231014-r0.apk; \
curl -LO https://github.com/r-hub/r-musl/releases/download/0.0.1/libgfortran-13.2.1_git20231014-r0.apk; \
apk add --allow-untrusted *.apk; \
else \
apk add gcc gfortran; \
fi
RUN apk add linux-headers bash musl-dev g++ pkgconf make \
perl cmake git openjdk21-jdk
# cairo-r pkg-config file depends on these
RUN apk add libxext-dev libxrender-dev xcb-util-dev
# Some of this info is shown on the GH packages pages
LABEL org.opencontainers.image.source="https://github.com/r-hub/r-musl"
LABEL org.opencontainers.image.description="Self-contained R build for Alpine Linux. System libraries."
LABEL org.opencontainers.image.authors="https://github.com/gaborcsardi"