sugitora commited on
Commit
27b443e
·
verified ·
1 Parent(s): 8485500

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -2,13 +2,19 @@ FROM rocker/r-base:latest
2
 
3
  WORKDIR /code
4
 
 
5
  RUN install2.r --error \
6
  shiny \
 
7
  dplyr \
8
- ggplot2 \
9
  readr \
10
- ggExtra
11
-
 
12
  COPY . .
13
 
14
- CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
 
 
 
 
 
2
 
3
  WORKDIR /code
4
 
5
+ # 必要な R パッケージをインストール
6
  RUN install2.r --error \
7
  shiny \
8
+ shinydashboard \
9
  dplyr \
 
10
  readr \
11
+ DT
12
+
13
+ # ファイルをコピー
14
  COPY . .
15
 
16
+ # ポート 7860 Shiny を実行
17
+ # Hugging Face Spaces は 7860 をデフォルトポートとしている
18
+ EXPOSE 7860
19
+
20
+ CMD ["R", "--quiet", "-e", "shiny::runApp('app.R', host='0.0.0.0', port=7860)"]