Skip to content

Commit e7afd11

Browse files
authored
Init Renv
1 parent b4910e9 commit e7afd11

File tree

1 file changed

+5
-39
lines changed

1 file changed

+5
-39
lines changed

dea/Dockerfile

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -15,52 +15,18 @@ RUN apt-get install -y libgeos-dev
1515

1616
RUN apt-get install -y libglpk40 libglpk-dev
1717

18-
19-
# Install R packages
20-
RUN R -e 'install.packages("data.table", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
21-
RUN R -e 'install.packages("dplyr", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
22-
RUN R -e 'install.packages("DT", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
23-
RUN R -e 'install.packages("ff", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
24-
RUN R -e 'install.packages("ggfun", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-10-27")'
25-
RUN R -e 'install.packages("ggplot2", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-12-23")'
26-
RUN R -e 'install.packages("ggplotify", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-10-20")'
27-
RUN R -e 'install.packages("ggpubr", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-09-19")'
28-
RUN R -e 'install.packages("ggrepel", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-10-20")'
29-
RUN R -e 'install.packages("ggridges", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-10-20")'
30-
RUN R -e 'install.packages("gridExtra", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
31-
RUN R -e 'install.packages("magrittr", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-12-23")'
32-
RUN R -e 'install.packages("Matrix", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-01-20")'
33-
RUN R -e 'install.packages("patchwork", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-10-20")'
34-
RUN R -e 'install.packages("plotly", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-04-20")'
35-
RUN R -e 'install.packages("matrixStats", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
36-
RUN R -e 'install.packages("memuse", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
37-
RUN R -e 'install.packages("reshape2", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
38-
RUN R -e 'install.packages("Seurat", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2022-05-20")'
39-
RUN R -e 'install.packages("shiny", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2021-04-23")'
40-
RUN R -e 'install.packages("shinycssloaders", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2021-04-23")'
41-
RUN R -e 'install.packages("shinydashboard", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2021-04-23")'
42-
RUN R -e 'install.packages("shinyjs", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2021-04-23")'
43-
RUN R -e 'install.packages("shinythemes", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
44-
RUN R -e 'install.packages("stringi", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
45-
RUN R -e 'install.packages("stringr", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2023-04-20")'
46-
RUN R -e 'install.packages("tidytree", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-04-20")'
47-
48-
RUN R -e 'install.packages("BiocManager")'
49-
RUN R -e 'BiocManager::install("scuttle")'
50-
RUN R -e 'BiocManager::install("BiocSingular")'
51-
RUN R -e 'BiocManager::install("MAST")'
52-
53-
RUN R -e 'install.packages("devtools")'
54-
RUN R -e 'remotes::install_github("YuLab-SMU/ggtree")'
55-
RUN R -e 'devtools::install_github("XiaoLuo-boy/ggheatmap")'
56-
RUN R -e 'install.packages("gplots", repos="https://packagemanager.rstudio.com/cran/__linux__/focal/2024-10-20")'
18+
# Install renv
19+
RUN R -e "install.packages('renv', repos='https://cloud.r-project.org')"
5720

5821
# Set the working directory
5922
WORKDIR /home/app
6023

6124
# Copy the app directory into the image
6225
COPY . /home/app
6326

27+
# Restore the environment exactly
28+
RUN R -e "renv::restore()"
29+
6430
# Expose the port
6531
EXPOSE 3838
6632

0 commit comments

Comments
 (0)