Skip to content

Commit

Permalink
use Rscript
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro committed Jun 5, 2024
1 parent a248c2a commit 888397a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ RUN pip install -r requirements.txt
# Use renv for R packages
WORKDIR /usr/local/renv
ENV RENV_CONFIG_CACHE_ENABLED=FALSE
RUN R -e "install.packages('renv')"
RUN Rscript -e "install.packages('renv')"

# Temporary fix for broken(?) RSamtools package
RUN R -e "install.packages('BiocManager'); BiocManager::install('Rsamtools')"
RUN Rscript -e "install.packages('BiocManager'); BiocManager::install('Rsamtools')"

COPY renv.lock renv.lock
RUN R -e "renv::restore()" \
RUN Rscript -e "renv::restore()" \
rm -rf ~/.cache/R/renv && \
rm -rf /tmp/downloaded_packages && \
rm -rf /tmp/Rtmp*
Expand Down

0 comments on commit 888397a

Please sign in to comment.