Spaces:
Sleeping
Sleeping
File size: 549 Bytes
210535c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # 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"]
|