discord_peak_bot/Dockerfile

21 lines
536 B
Docker
Raw Permalink Normal View History

2024-08-03 11:18:28 +00:00
# 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"]