whitesns-api / Dockerfile
Nyanpre's picture
Upload 4 files
8c64ff3 verified
raw
history blame contribute delete
518 Bytes
# Hugging Face Spaces用 Dockerfile (Python 3.10)
FROM python:3.10
# コンテナ内の作業ディレクトリを設定
WORKDIR /app
# 依存パッケージ定義をコピー
COPY requirements.txt .
# パッケージのインストール
RUN pip install --no-cache-dir -r requirements.txt
# コード全体をコピー
COPY . .
# Hugging Face SpacesはデフォルトでPort 7860を使用
EXPOSE 7860
# FastAPIアプリケーションを起動
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]