Jai Ansh Bindra
Add Flask app, requirements, and Dockerfile
a133f17
raw
history blame contribute delete
370 Bytes
# Use an official Python base image
FROM python:3.9-slim
# Create a working directory
WORKDIR /code
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY . .
# Expose the port expected by Hugging Face Spaces
EXPOSE 7860
# Run your Flask app
CMD ["python", "app.py"]