21 lines
536 B
Docker
21 lines
536 B
Docker
# Dockerfile
|
|
FROM python:3.10-slim
|
|
|
|
# 基本パッケージのインストール
|
|
RUN apt-get update && apt-get install -y \
|
|
ffmpeg
|
|
|
|
# Pythonパッケージのインストール
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install -r /app/requirements.txt
|
|
|
|
# アプリケーションのコピー
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
# エントリーポイントスクリプトをコピーして実行権限を付与
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT ["entrypoint.sh"]
|