File size: 538 Bytes
21f4884
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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"]