Skip to content

Commit

Permalink
Maj dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jdlom committed Mar 19, 2023
1 parent b580ca2 commit de0d71b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
ARG R_VERSION=4.2.1

FROM inseefrlab/onyxia-rstudio:r${R_VERSION}
ENV RENV_VERSION 0.16.0
RUN apt-get update && apt-get install -y cargo
RUN R -e "install.packages('remotes', repos = c(CRAN = 'https://cloud.r-project.org'))"
RUN R -e "remotes::install_github('rstudio/renv@${RENV_VERSION}')"
COPY renv.lock renv.lock
RUN R -e 'renv::restore()'
COPY DESCRIPTION DESCRIPTION
RUN R -e 'remotes::install_deps(dependencies = TRUE)'

0 comments on commit de0d71b

Please sign in to comment.