Distopia22's picture
Initial backend deployment
56edde7
raw
history blame
331 Bytes
FROM python:3.11-slim
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the entire backend
COPY . .
# Expose port 7860 (Hugging Face Spaces default)
EXPOSE 7860
# Run the application
CMD ["python", "src/main.py"]