Spaces:
Sleeping
Sleeping
Download Dockerfile from schmidj/Metafinder_AI: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/schmidj/Metafinder_AI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/schmidj/Metafinder_AI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/schmidj/Metafinder_AI/resolve/main/Dockerfile
438 Bytes
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user . /app | |
| # Install Flask | |
| RUN pip install flask gunicorn pymupdf tiktoken | |
| # Expose default port | |
| EXPOSE 7860 | |
| # Run with Gunicorn | |
| CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"] | |