init project
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
# 設置工作目錄
|
||||
WORKDIR /app
|
||||
|
||||
# 複製依賴文件
|
||||
COPY requirements.txt .
|
||||
|
||||
# 安裝依賴
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# 複製源代碼
|
||||
COPY src/ ./src/
|
||||
|
||||
# 設置環境變量
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
ENV PYTHONPATH=/app
|
||||
|
||||
# 運行 Bot
|
||||
CMD ["python", "-m", "src.main"]
|
||||
Reference in New Issue
Block a user