22 lines
513 B
Docker
22 lines
513 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# 必要なパッケージをインストール
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python依存関係をインストール
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# アプリケーションコードをコピー
|
|
COPY . .
|
|
|
|
# スクリプトに実行権限を付与
|
|
RUN chmod +x register_event_users.py
|
|
|
|
# デフォルトコマンド
|
|
CMD ["python", "register_event_users.py", "--help"]
|