vtuber_rvc_models2 / Dockerfile
soiz1's picture
Update Dockerfile
5bfcbee verified
raw
history blame
744 Bytes
# ベースイメージを指定(Python 3.10 使用例)
FROM python:3.10-slim
# 作業ディレクトリを設定
WORKDIR /app
# 必要なシステム依存関係をインストール(最小限)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libsm6 \
libxext6 \
libgl1-mesa-glx \
git \
&& rm -rf /var/lib/apt/lists/*
# Pythonの依存関係インストール用のキャッシュを有効活用
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# アプリケーションファイルをコンテナにコピー
COPY . .
# アプリのエントリポイントを設定
CMD ["python", "app.py"]