sugitora commited on
Commit
199257e
·
verified ·
1 Parent(s): 9266630

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
  # Hugging Face Spaces用 R Shiny Dockerfile
2
- # rocker/shiny-verse: tidyverse(dplyr含む)が事前インストール済み
3
- # FROM rocker/shiny-verse:4.3.2
4
 
5
- # # leafletのみインストール
6
- # RUN R -e "install.packages('leaflet', repos='https://cloud.r-project.org/')"
7
 
8
- FROM continuumio/miniconda3:latest
9
- RUN conda install -c conda-forge -y r-base=4.3 r-shiny r-dplyr r-leaflet
10
 
11
  # アプリディレクトリ
12
  WORKDIR /app
 
1
  # Hugging Face Spaces用 R Shiny Dockerfile
2
+ # rocker/geospatial: leaflet, dplyrが事前インストール済み
3
+ FROM rocker/geospatial:4.4.1
4
 
5
+ # shinyをインストール
6
+ RUN R -e "install.packages('shiny', repos='https://cloud.r-project.org/')"
7
 
8
+ # パッケージ確認
9
+ RUN R -e "library(shiny); library(dplyr); library(leaflet); cat('All packages OK\n')"
10
 
11
  # アプリディレクトリ
12
  WORKDIR /app