17 lines
423 B
Docker
17 lines
423 B
Docker
|
# ベースイメージ
|
||
|
FROM python:3.9-slim
|
||
|
|
||
|
# 作業ディレクトリの設定
|
||
|
WORKDIR /app
|
||
|
|
||
|
# 必要なパッケージのインストール
|
||
|
RUN apt-get update && apt-get install -y ffmpeg
|
||
|
COPY requirements.txt requirements.txt
|
||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
|
||
|
# アプリケーションファイルのコピー
|
||
|
COPY . .
|
||
|
|
||
|
# コンテナ起動時に実行されるコマンド
|
||
|
CMD ["python", "app.py"]
|