CoolFace
Apppublic

Alamgirapi/Professional

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
Dockerfile32 linesDownload Raw Back to root
1FROM python:3.9-slim
2
3WORKDIR /app
4
5# Install system dependencies
6RUN apt-get update && apt-get install -y \
7    gcc \
8    g++ \
9    && rm -rf /var/lib/apt/lists/*
10
11# Copy requirements first for better caching
12COPY requirements.txt .
13
14# Install Python dependencies
15RUN pip install --no-cache-dir -r requirements.txt
16
17# Copy application code
18COPY . .
19
20# Create necessary directories
21RUN mkdir -p data/vector_store
22RUN mkdir -p templates
23
24# Expose the port
25EXPOSE 7860
26
27# Set environment variables
28ENV PYTHONPATH=/app
29ENV PORT=7860
30
31# Run the application
32CMD ["python", "app.py"]