Spaces:
Running
Running
Download Dockerfile from idiouf/UL-Informatique-IA-L1: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/spaces/idiouf/UL-Informatique-IA-L1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/idiouf/UL-Informatique-IA-L1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/idiouf/UL-Informatique-IA-L1/resolve/main/Dockerfile
516 Bytes
| FROM python:3.12-slim | |
| RUN useradd --create-home --uid 1000 user && mkdir -p /data /home/user/app && chown -R user:user /data /home/user/app | |
| WORKDIR /home/user/app | |
| COPY requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . . | |
| USER user | |
| ENV PYTHONUNBUFFERED=1 UL_DATA_DIR=/data | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "4", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "server:create_app()"] | |