EightTest00 / Dockerfile
sugitora's picture
Update Dockerfile
27b443e verified
raw
history blame contribute delete
424 Bytes
FROM rocker/r-base:latest
WORKDIR /code
# 必要な R パッケージをインストール
RUN install2.r --error \
shiny \
shinydashboard \
dplyr \
readr \
DT
# ファイルをコピー
COPY . .
# ポート 7860 で Shiny を実行
# Hugging Face Spaces は 7860 をデフォルトポートとしている
EXPOSE 7860
CMD ["R", "--quiet", "-e", "shiny::runApp('app.R', host='0.0.0.0', port=7860)"]