Spaces:
Sleeping
Sleeping
Download Dockerfile from shukdev3/Text-Vectorizer: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/shukdev3/Text-Vectorizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shukdev3/Text-Vectorizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shukdev3/Text-Vectorizer/resolve/main/Dockerfile
583 Bytes
| # Hugging Face Spaces (Docker SDK) — see README.md for the YAML config block | |
| # that tells the Space to build this image and route traffic to port 7860. | |
| FROM python:3.11-slim | |
| # HF Spaces containers run as a non-root user with UID 1000 | |
| RUN useradd -m -u 1000 user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . /app | |
| USER user | |
| ENV PORT=7860 \ | |
| FLASK_DEBUG=0 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |