chenhao0506/Programing-and-data-visualization
0
1FROM python:3.11-slim2 3WORKDIR /app4 5# 安裝系統基本工具6RUN apt-get update && apt-get install -y \7 build-essential \8 && rm -rf /var/lib/apt/lists/*9 10# 複製需求檔11COPY requirements.txt .12 13# 安裝 Python 套件14RUN pip install --no-cache-dir -r requirements.txt15 16# 複製專案程式碼17COPY . .18 19# Hugging Face 預設 port 為 786020EXPOSE 786021 22CMD ["python", "app.py"]