Dockerfile 289 B

123456789101112131415
  1. # 使用 Python 3 的官方基礎映像
  2. FROM python:3.8-slim
  3. # 設置工作目錄
  4. WORKDIR /kw_tools
  5. # 複製 requirements.txt 到容器內
  6. COPY requirements.txt .
  7. # 安裝 Python packages
  8. RUN pip install --no-cache-dir -r requirements.txt
  9. # 複製你的程式碼到容器內
  10. COPY . .