Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files1234567891011121314151617181920212223242526272829# -------------- Dockerfile --------------
# Use a lightweight Python base imageFROM python:3.10-slim
# Set a working directory inside the containerWORKDIR /app
# Copy only requirements first (to leverage Docker cache)COPY requirements.txt .
# Upgrade pip and install Python dependenciesRUN pip install --upgrade pip && \ pip install --no-cache-dir -r requirements.txt
# Copy the application code into the containerCOPY app.py .
# Expose the port that Gradio will listen onEXPOSE 7860
# Set environment variables so Gradio binds to 0.0.0.0 (all interfaces)ENV GRADIO_SERVER_NAME="0.0.0.0"ENV GRADIO_SERVER_PORT="7860"
# Start the Gradio appCMD ["python", "app.py"]
# -------------- End of Dockerfile --------------DockerfileAdded+29