| # ベースイメージを指定 | |
| FROM python:3.11-slim | |
| # 作業ディレクトリを設定 | |
| WORKDIR /app | |
| # 必要なパッケージをインストール | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # アプリケーションのソースコードをコピー | |
| COPY . . | |
| # サーバーを起動するコマンドを指定 | |
| CMD ["python", "./whisper_fastapi_online_server.py", "--host", "localhost", "--port", "8000", "--lan", "en", "--model", "tiny"] | |