okata commited on
Commit
6a0900e
·
verified ·
1 Parent(s): 7fbc44d

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -13,7 +13,7 @@ RUN apt-get update \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  # Install R packages
16
- RUN R -e "install.packages(c('shinyjqui','BiocManager','remotes', 'devtools', 'shiny','shinyscreenshot', 'readr', 'shinyAce', 'ggplot2', 'dplyr', 'shinythemes', 'openintro', 'plotly', 'DT', 'ggprism', 'ggbeeswarm', 'shinyFiles', 'stringr', 'shinyBS', 'shinydashboard', 'shinyWidgets', 'tidyr', 'pheatmap', 'grid', 'gridExtra', 'ggeasy', 'ggtext', 'colorspace', 'shinyjqui', 'tidyverse', 'gprofiler2', 'colourpicker', 'shinydashboardPlus', 'jsonlite', 'reshape2','shinyalert'))"
17
 
18
  RUN R -e 'BiocManager::install("graph")'
19
  RUN R -e "source('https://install-github.me/dreamRs/esquisse')"
@@ -21,14 +21,12 @@ RUN R -e "source('https://install-github.me/dreamRs/esquisse')"
21
  # Install plumber and cyjshiny
22
  RUN R -e "install.packages(c('plumber','cyjShiny','svglite'))"
23
 
24
- # アプリケーションのディレクトリ構造を作成
25
  RUN mkdir -p /srv/app/modules \
26
  && mkdir -p /srv/app/pathwaymap \
27
  && mkdir -p /srv/app/svg \
28
  && mkdir -p /srv/app/www \
29
  && mkdir -p /srv/app/data
30
 
31
- # Nginxの設定とディレクトリ作成
32
  RUN rm /etc/nginx/sites-enabled/default \
33
  && mkdir -p /var/cache/nginx \
34
  && mkdir -p /var/log/nginx \
@@ -47,7 +45,6 @@ RUN rm /etc/nginx/sites-enabled/default \
47
  COPY nginx.conf /etc/nginx/nginx.conf
48
  RUN chmod 666 /etc/nginx/nginx.conf
49
 
50
- # ファイルのコピー
51
  COPY ./app/ui.R /srv/app/
52
  COPY ./app/server.R /srv/app/
53
  COPY ./app/plumber.R /srv/app/
@@ -57,17 +54,14 @@ COPY ./app/svg /srv/app/svg/
57
  COPY ./app/www /srv/app/www/
58
  COPY ./scripts/start.sh /usr/local/bin/start.sh
59
 
60
- # 実行権限の設定
61
  RUN chmod +x /usr/local/bin/start.sh
62
 
63
- # ディレクトリの権限設定
64
  RUN chmod -R 777 /srv/app \
65
  && chmod -R 777 /srv/app/data
66
 
67
- # ポート設定
68
  EXPOSE 7860
69
  EXPOSE 8000
70
  EXPOSE 9000
71
 
72
- # 起動コマンド
73
  CMD ["sh", "/usr/local/bin/start.sh"]
 
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  # Install R packages
16
+ RUN R -e "install.packages(c('shinyjqui','BiocManager','bslib','rstatix','ggpubr','remotes', 'devtools', 'shiny','shinyscreenshot', 'readr', 'shinyAce', 'ggplot2', 'dplyr', 'shinythemes', 'openintro', 'plotly', 'DT', 'ggprism', 'ggbeeswarm', 'shinyFiles', 'stringr', 'shinyBS', 'shinydashboard', 'shinyWidgets', 'tidyr', 'pheatmap', 'grid', 'gridExtra', 'ggeasy', 'ggtext', 'colorspace', 'shinyjqui', 'tidyverse', 'gprofiler2', 'colourpicker', 'shinydashboardPlus', 'jsonlite', 'reshape2','shinyalert'))"
17
 
18
  RUN R -e 'BiocManager::install("graph")'
19
  RUN R -e "source('https://install-github.me/dreamRs/esquisse')"
 
21
  # Install plumber and cyjshiny
22
  RUN R -e "install.packages(c('plumber','cyjShiny','svglite'))"
23
 
 
24
  RUN mkdir -p /srv/app/modules \
25
  && mkdir -p /srv/app/pathwaymap \
26
  && mkdir -p /srv/app/svg \
27
  && mkdir -p /srv/app/www \
28
  && mkdir -p /srv/app/data
29
 
 
30
  RUN rm /etc/nginx/sites-enabled/default \
31
  && mkdir -p /var/cache/nginx \
32
  && mkdir -p /var/log/nginx \
 
45
  COPY nginx.conf /etc/nginx/nginx.conf
46
  RUN chmod 666 /etc/nginx/nginx.conf
47
 
 
48
  COPY ./app/ui.R /srv/app/
49
  COPY ./app/server.R /srv/app/
50
  COPY ./app/plumber.R /srv/app/
 
54
  COPY ./app/www /srv/app/www/
55
  COPY ./scripts/start.sh /usr/local/bin/start.sh
56
 
57
+
58
  RUN chmod +x /usr/local/bin/start.sh
59
 
 
60
  RUN chmod -R 777 /srv/app \
61
  && chmod -R 777 /srv/app/data
62
 
 
63
  EXPOSE 7860
64
  EXPOSE 8000
65
  EXPOSE 9000
66
 
 
67
  CMD ["sh", "/usr/local/bin/start.sh"]