Download Dockerfile from cormort/ScanItem: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/spaces/cormort/ScanItem/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cormort/ScanItem/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cormort/ScanItem/resolve/main/Dockerfile
325 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . /code | |
| # 建立 templates 資料夾 (為了與 app.py 的結構對應) | |
| RUN mkdir -p /code/templates | |
| # 重要:確保權限 | |
| RUN chmod 777 /code | |
| CMD ["python", "app.py"] |