AIprojects / Dockerfile
sayanAIAI's picture
Update Dockerfile
77ae037 verified
raw
history blame contribute delete
432 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", "-c", "gunicorn_conf.py", "main:app"]