Download Dockerfile from Easemed/parse-api: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/Easemed/parse-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Easemed/parse-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Easemed/parse-api/resolve/main/Dockerfile
438 Bytes
| FROM python:3.10-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the rest of the app | |
| COPY --chown=user . . | |
| # Ensure the data directory exists and has permissions | |
| RUN mkdir -p data/uploaded | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |