TrasaburouAppTest / Dockerfile
sugitora's picture
Update Dockerfile
1bd9a26 verified
raw
history blame contribute delete
679 Bytes
FROM rocker/r-base:latest
# 作業ディレクトリを設定
WORKDIR /code
# システムパッケージの更新
RUN apt-get update && apt-get install -y \
libssl-dev \
libcurl4-openssl-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
# R パッケージをインストール
RUN install2.r --error \
shiny \
dplyr \
ggplot2 \
tidyr \
plotly \
corrplot \
gridExtra \
readr
# アプリケーションファイルをコピー
COPY app.R .
COPY DummyData.csv .
# ポート7860を公開(Hugging Face Spaces)
EXPOSE 7860
# Shinyアプリを起動
CMD ["R", "--quiet", "-e", "shiny::runApp('.', host='0.0.0.0', port=7860)"]