Skip to content

Commit 64a3f7b

Browse files
committed
init Dockerfile
1 parent 357cdd3 commit 64a3f7b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM rocker/rstudio:4.4.2
2+
3+
RUN R -e "install.packages(c('renv', 'tinytex'), repos = c(CRAN = 'https://cloud.r-project.org'))"
4+
RUN R -e "tinytex::install_tinytex()"
5+
6+
#RUN apt-get update -qq && apt-get -y --no-install-recommends install \
7+
# && install2.r --error --skipmissing --deps TRUE --skipinstalled \
8+
# tinytex
9+
10+
#WORKDIR /project
11+
#COPY renv.lock renv.lock
12+
13+
#RUN mkdir -p renv
14+
#COPY .Rprofile .Rprofile
15+
#COPY renv/activate.R renv/activate.R
16+
#COPY renv/settings.json renv/settings.json
17+
18+
COPY . /project
19+
WORKDIR /project
20+
21+
RUN R -e "renv::restore()"
22+
RUN quarto render

0 commit comments

Comments
 (0)