Download docker/dockerfiles/Dockerfile.device_manager from Sankie005/Docker_ml: direct link, hf CLI and curl.
- Browser
- Download file 811 Bytes
-
https://huggingface.co/spaces/Sankie005/Docker_ml/resolve/main/docker/dockerfiles/Dockerfile.device_manager
- Command line
-
hf download hf://spaces/Sankie005/Docker_ml/docker/dockerfiles/Dockerfile.device_manager
-
curl -L -o Dockerfile.device_manager https://huggingface.co/spaces/Sankie005/Docker_ml/resolve/main/docker/dockerfiles/Dockerfile.device_manager
811 Bytes
| FROM python:3.10 | |
| # Keeps Python from generating .pyc files in the container | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| # Turns off buffering for easier container logging | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN apt update -y && apt install -y \ | |
| ffmpeg \ | |
| libxext6 \ | |
| libsm6 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN python3 -m pip install --upgrade pip | |
| COPY requirements/requirements.device_manager.txt ./ | |
| COPY requirements/_requirements.txt ./ | |
| RUN pip3 install --upgrade pip && pip3 install \ | |
| -r _requirements.txt \ | |
| -r requirements.device_manager.txt \ | |
| --upgrade \ | |
| && rm -rf ~/.cache/pip | |
| COPY inference inference | |
| COPY docker/config/device_manager.py device_manager.py | |
| ENV NUM_WORKERS=1 | |
| ENV PORT=9101 | |
| ENV HOST=0.0.0.0 | |
| ENTRYPOINT uvicorn device_manager:app --workers $NUM_WORKERS --host $HOST --port $PORT |