Download Dockerfile from Joey889/Scratch: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/Joey889/Scratch/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Joey889/Scratch/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Joey889/Scratch/resolve/main/Dockerfile
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"] | |