Spaces:
Running
Running
# Use official lightweight Python image | |
FROM python:3.11-slim | |
# Set the working directory | |
WORKDIR /app | |
# Copy requirements directly (you can also use a requirements.txt file instead) | |
COPY . . | |
# Install dependencies | |
RUN pip install --no-cache-dir Flask requests sse-starlette httpx | |
# Expose the port (e.g., 7860 for HF Spaces or your desired one) | |
EXPOSE 7860 | |
# Environment variable (optional) | |
ENV PORT=7860 | |
# Start the Python app | |
CMD ["python", "app.py"] | |