Spaces:
Sleeping
Sleeping
Download Dockerfile from AhmadYarAI/SmiloCAD_Invoice_System: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/spaces/AhmadYarAI/SmiloCAD_Invoice_System/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AhmadYarAI/SmiloCAD_Invoice_System/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AhmadYarAI/SmiloCAD_Invoice_System/resolve/main/Dockerfile
468 Bytes
| FROM python:3.10-slim | |
| USER root | |
| RUN apt-get update && apt-get install -y libpq-dev gcc && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PYTHONPATH=/home/user/app | |
| WORKDIR $HOME/app | |
| COPY --chown=user:user requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| COPY --chown=user:user . . | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |