Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Dec 28, 2023
1 parent e8a4767 commit eef6302
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,9 @@
FROM rocker/r2u:22.04

RUN R -e "\
remotes::install_version('curl', version = '5.2.0') \
remotes::install_version('dplyr', version = '1.1.4') \
remotes::install_version('purrr', version = '1.0.2') \
remotes::install_version('readr', version = '2.1.4') \
remotes::install_version('stringr', version = '1.5.1') \
remotes::install_version('ggplot2', version = '3.4.4') \
remotes::install_version('janitor', version = '2.2.0') \
remotes::install_version('targets', version = '1.4.0') \
"
RUN R -e "install.packages(c('dplyr', 'purrr', 'curl', 'readr', 'stringr', 'ggplot2', 'janitor', 'targets'))"

RUN mkdir /output

COPY _targets.R /_targets.R
COPY _targets.R functions.R /

COPY functions.R /functions.R

CMD R -e "targets::tar_make()"
CMD R -e "sessionInfo(); targets::tar_make();"

0 comments on commit eef6302

Please sign in to comment.