Skip to content

Commit 070cfb1

Browse files
committed
Install python3 into the docker image
1 parent 84a0db7 commit 070cfb1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Dockerfile

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
ARG R_VERSION=4.3.1
22

3-
# FROM rocker/tidyverse:${R_VERSION} AS build
43
FROM rocker/r-ver:${R_VERSION} AS build
54

65
RUN R --quiet --no-save <<EOF
@@ -32,7 +31,18 @@ for (name in names(dependencies)) {
3231
EOF
3332

3433
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.
3537
COPY --from=build /tmp/userlib /usr/local/lib/R/site-library
3638

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+
3747
LABEL maintainer="Nicholas Wiltsie <[email protected]" \
3848
org.opencontainers.image.source=https://github.com/uclahs-cds/pipeline-StableLift

0 commit comments

Comments
 (0)