Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| # 1) Voicevox Engine のインストール | |
| RUN apt-get update && apt-get install -y curl \ | |
| && curl -L https://github.com/VOICEVOX/voicevox_engine/releases/download/.../voicevox_engine_linux.tar.gz \ | |
| | tar xz -C /opt/voicevox_engine | |
| ENV PATH="/opt/voicevox_engine/bin:${PATH}" | |
| # 2) Python環境構築 | |
| COPY requirements.txt /app/ | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| # 3) コードコピー | |
| COPY . /app | |
| WORKDIR /app | |
| # 4) ポート公開&起動 | |
| EXPOSE 7860 | |
| ENTRYPOINT ["python", "app.py"] | |