Spaces:
Running
Running
Download Dockerfile from yoursdvniel/SmartInc-API: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/spaces/yoursdvniel/SmartInc-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/yoursdvniel/SmartInc-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/yoursdvniel/SmartInc-API/resolve/main/Dockerfile
333 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set environment vars | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy dependencies first (for caching) | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code | |
| COPY . . | |
| # Run the app | |
| CMD ["python", "main.py"] | |