Skip to content

Commit

Permalink
Pre-copy folder to standard path
Browse files Browse the repository at this point in the history
  • Loading branch information
nwiltsie committed Jul 25, 2024
1 parent 5a2745a commit 7a48523
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ ARG BIOC_VERSION="3.18"
ENV BIOC_VERSION=${BIOC_VERSION}

COPY docker/install-stablelift.R /tmp

RUN Rscript /tmp/install-stablelift.R
RUN cp -r \
"/tmp/stablelift/renv/library/R-4.3/*" \
"/tmp/library-to-copy"

FROM rocker/r-ver:${R_VERSION}

# Overwrite the site library with just the desired packages. By default rocker
# only bundles docopt and littler in that directory.
COPY --from=build \
/tmp/stablelift/renv/library/R-4.3/aarch64-unknown-linux-gnu \
/tmp/library-to-copy \
/usr/local/lib/R/site-library

# Install python (required for argparse). The version is not important, but
Expand Down

0 comments on commit 7a48523

Please sign in to comment.