amamiyax17's picture
Set Streamlit logger level to debug in Dockerfile
d58d885
raw
history blame contribute delete
746 Bytes
FROM python:3.11-slim
WORKDIR /app
# システムの依存関係をインストール
RUN apt-get update && apt-get install -y \
git \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Pythonの依存関係をコピーしてインストール
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# プロジェクトファイルをコピー
COPY . .
# Streamlitのポート設定
EXPOSE 7860
# ヘルスチェック
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:7860/_stcore/health || exit 1
# アプリケーション起動
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--logger.level=debug"]