Spaces:
Sleeping
Sleeping
File size: 394 Bytes
58c1d87 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # Base image with Python
FROM python:3.10-slim
# Set working directory inside container
WORKDIR /app
# Copy requirements first (for caching)
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy all project files (API + model)
COPY . .
# Expose port for Flask
EXPOSE 7860
# Run the Flask app
CMD ["python", "app.py"]
|