Spaces:
Runtime error
Runtime error
Download Dockerfile from Param20h/sql-query-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/Param20h/sql-query-optimizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Param20h/sql-query-optimizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Param20h/sql-query-optimizer/resolve/main/Dockerfile
549 Bytes
| # Use Python 3.11 slim base | |
| FROM python:3.11-slim | |
| # Metadata | |
| LABEL maintainer="metaXscaler" | |
| LABEL description="SQL Query Optimizer — OpenEnv Environment" | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies first (layer cache optimisation) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # HF Spaces default port | |
| EXPOSE 7860 | |
| # Start the FastAPI server | |
| ENV ENABLE_WEB_INTERFACE=true | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] | |