Scratch / Dockerfile
Joey889's picture
Upload 4 files
bc44543 verified
raw
history blame contribute delete
280 Bytes
# 基礎映像:Python 3.9
FROM python:3.9-slim
# 設定工作目錄
WORKDIR /app
# 複製所需檔案
COPY requirements.txt .
COPY app.py .
# 安裝依賴
RUN pip install --no-cache-dir -r requirements.txt
# 指定埠口
EXPOSE 5000
# 啟動應用
CMD ["python", "app.py"]