@@ -15,52 +15,18 @@ RUN apt-get install -y libgeos-dev
15
15
16
16
RUN apt-get install -y libglpk40 libglpk-dev
17
17
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')"
57
20
58
21
# Set the working directory
59
22
WORKDIR /home/app
60
23
61
24
# Copy the app directory into the image
62
25
COPY . /home/app
63
26
27
+ # Restore the environment exactly
28
+ RUN R -e "renv::restore()"
29
+
64
30
# Expose the port
65
31
EXPOSE 3838
66
32
0 commit comments