Spaces:
Running
Running
Download Dockerfile from codelion/data-inventor: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/codelion/data-inventor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/codelion/data-inventor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/codelion/data-inventor/resolve/main/Dockerfile
445 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONUNBUFFERED=1 PORT=7860 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user datainventor ./datainventor | |
| COPY --chown=user app ./app | |
| COPY --chown=user static ./static | |
| WORKDIR /home/user/app/app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |