email-support-system / Dockerfile
milanchndr's picture
Update Dockerfile
139eb25 verified
raw
history blame contribute delete
519 Bytes
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Install build dependencies for blis and git
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port (Hugging Face Spaces uses 7860 by default)
EXPOSE 7860
# Command to run the Flask app
CMD ["python", "main.py"]