File size: 442 Bytes
8e70df9
6c8a2d5
e350ce8
 
6c8a2d5
e350ce8
 
 
6c8a2d5
e350ce8
 
 
 
 
 
 
b67e3a6
e350ce8
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy schema, backend files, and environment config
COPY backend/schema.sql .
COPY backend/ backend/
COPY .env* ./

# Expose port
EXPOSE 7860

# Start the application
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]