RUN R -e"install.packages(c('pacman', 'here', 'rio', 'sp', 'shiny', 'shinydashboard', 'webshot', 'png', 'plotly', 'lubridate', 'showtext'), repos='https://mirrors.tuna.tsinghua.edu.cn/CRAN/')"&&\
R -e"install.packages(c('arrow'), repos='https://cloud.r-project.org/')"&&\
R -e"install.packages(c('textshaping','ragg','rvest','xml2','gtsummary','gt', 'tidyverse', 'shinyjs','officer','shiny.i18n','googleLanguageR','shinyWidgets','magick','officedown','readxl','janitor','survival','flextable','zoo','eoffice','tableone','reticulate'))"
# 安装R包
RUN R -e"install.packages(c('pacman', 'here', 'rio', 'sp', 'shiny', 'shinydashboard', 'webshot', 'png', 'plotly', 'lubridate', 'showtext'),repos='https://mirrors.tuna.tsinghua.edu.cn/CRAN/')"&&\
R -e"install.packages(c('textshaping','ragg','rvest','xml2','gtsummary','gt','arrow', 'tidyverse'))"
# 设置环境变量
ENV PYTHONUNBUFFERED=1
# 配置nginx相关的目录
RUN mv /etc/nginx/*${BASE_PATH}/in2-t2dm/codes/nginx/ &&\