Spaces:
Sleeping
Sleeping
Download Dockerfile from cvachet/object_detection_ecs: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/cvachet/object_detection_ecs/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cvachet/object_detection_ecs/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cvachet/object_detection_ecs/resolve/main/Dockerfile
380 Bytes
| # Use a lightweight Python base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port for the application | |
| EXPOSE 7860 | |
| # Ensure Gradio listens on all network interfaces | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| CMD ["python", "app.py"] | |