-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 965 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 965 Bytes
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
FROM ghcr.io/timeeval/r4-base:0.3.2
LABEL maintainer="[email protected]"
LABEL org.opencontainers.image.licenses="GPL-3.0"
# install R-install requirements
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends cmake libnlopt0 libnlopt-dev; \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# install PST, TraMineR and other libraries and cleanup afterwards
RUN set -eux; \
R -e 'install_version("TraMineR", version="2.2"); library("TraMineR")'; \
R -e 'install_version("PST", version="0.94"); library("PST")'; \
R -e 'install_version("arules", version="1.7"); library("arules")'; \
R -e 'install_version("BBmisc", version="1.13"); library("BBmisc")';\
find /opt/R/${R_VERSION}/lib/R/library -depth \
\( \
-type d -a \( -name doc -o -name html \) \
\) -exec rm -rf '{}' +; \
rm -rf /tmp/* /var/tmp/*
ENV ALGORITHM_MAIN="/app/algorithm.r"
COPY . /app/