AIprojects / Dockerfile
sayanAIAI's picture
Update Dockerfile
dc48027 verified
raw
history blame
433 Bytes
# Use Python base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your app
COPY . .
# Expose port 7860 for Hugging Face Spaces (or adjust as needed)
EXPOSE 7860
# Run Flask app using Gunicorn (production WSGI server)
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]