Download Dockerfile from Timilehin/2D-3D: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/spaces/Timilehin/2D-3D/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Timilehin/2D-3D/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Timilehin/2D-3D/resolve/main/Dockerfile
430 Bytes
| FROM python:3.10.14 | |
| RUN apt-get update && apt-get install -y python3-opencv | |
| RUN pip install opencv-python | |
| 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 | |
| CMD ["gunicorn", "--workers", "3", "--timeout", "1000", "-b", "0.0.0.0:7860", "main1:app"] |