File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
ARG R_VERSION=4.3.1
2
2
3
- # FROM rocker/tidyverse:${R_VERSION} AS build
4
3
FROM rocker/r-ver:${R_VERSION} AS build
5
4
6
5
RUN R --quiet --no-save <<EOF
@@ -32,7 +31,18 @@ for (name in names(dependencies)) {
32
31
EOF
33
32
34
33
FROM rocker/r-ver:${R_VERSION}
34
+
35
+ # Overwrite the site library with just the desired packages. By default rocker
36
+ # only bundles docopt and littler in that directory.
35
37
COPY --from=build /tmp/userlib /usr/local/lib/R/site-library
36
38
39
+ # Install python (required for argparse). The version is not important, but
40
+ # let's pin it for stability.
41
+ RUN apt-get update \
42
+ && apt-get install -y --no-install-recommends \
43
+ python3=3.10 \
44
+ && apt-get clean \
45
+ && rm -rf /var/lib/apt/lists/*
46
+
37
47
LABEL maintainer=
"Nicholas Wiltsie <[email protected] " \
38
48
org.opencontainers.image.source=https://github.com/uclahs-cds/pipeline-StableLift
You can’t perform that action at this time.
0 commit comments