Spaces:
Sleeping
Sleeping
Jeetandar N Silwani
fix: image gen response parsing, camera DISABLE_CAMERA, lazy MediaPipe init
f021ba1 Download Dockerfile from dev-haresh/nexus-ai: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/dev-haresh/nexus-ai/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dev-haresh/nexus-ai/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dev-haresh/nexus-ai/resolve/main/Dockerfile
555 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # OpenCV, MediaPipe, and PyAudio system dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libgomp1 \ | |
| portaudio19-dev \ | |
| gcc \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV SOCKET_ASYNC_MODE=gevent | |
| ENV DISABLE_CAMERA=1 | |
| CMD gunicorn -k gevent -w 1 --bind 0.0.0.0:${PORT:-7860} wsgi:app | |