Spaces:
Running
Running
Download Dockerfile from CuteStarOC01/MX01: direct link, hf CLI and curl.
- Browser
- Download file 542 Bytes
-
https://huggingface.co/spaces/CuteStarOC01/MX01/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CuteStarOC01/MX01/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CuteStarOC01/MX01/resolve/main/Dockerfile
542 Bytes
| FROM python:3.10 | |
| WORKDIR /app | |
| RUN apt update && apt install -y \ | |
| git \ | |
| libavif-dev \ | |
| libjpeg-dev \ | |
| libpng-dev \ | |
| libtiff-dev \ | |
| libwebp-dev \ | |
| libfreetype6-dev \ | |
| libopenjp2-7-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN python -m pip install --upgrade pip setuptools wheel | |
| COPY requirements.txt . | |
| RUN python -m pip install --no-cache-dir -r requirements.txt | |
| RUN python -m pip install --no-cache-dir --upgrade Pillow | |
| COPY . /app | |
| # Hugging Face Spaces requires port 7860 | |
| EXPOSE 7860 | |
| CMD ["bash", "start.sh"] |