Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files12345672 unmodified lines10111213141516171819202122232425262728293031FROM python:3.10-slim# システムレベルの依存関係(ffmpeg, poppler, libheif等)のインストール# 改行を整理し、バックスラッシュによる継続行を正しく修正しましたRUN apt-get update && apt-get install -y \ffmpeg \poppler-utils \2 unmodified linesgcc \&& rm -rf /var/lib/apt/lists/*# 作業ディレクトリの設定WORKDIR /app# 一時作業領域の作成と権限設定RUN mkdir -p /tmp/media_master && chmod 777 /tmp/media_master# PythonライブラリのインストールCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# 全ファイルのコピーCOPY . .# Hugging Face Spacesのデフォルトポート7860を開放EXPOSE 7860# アプリの起動コマンド# 0.0.0.0でホストし、ポート7860で待ち受けますCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]1234562 unmodified lines9101112131415161718192021222324252627282930FROM python:3.10-slim# Install system dependenciesRUN apt-get update && apt-get install -y \ffmpeg \poppler-utils \2 unmodified linesgcc \&& rm -rf /var/lib/apt/lists/*WORKDIR /app# Setup temporary directoryRUN mkdir -p /tmp/media_master && chmod 777 /tmp/media_master# Install Python librariesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt# Copy application filesCOPY . .# Set permissions for the app directoryRUN chmod -R 777 /appEXPOSE 7860# Run the applicationCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
Dockerfile+8-9