File size: 683 Bytes
47a81c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.10-slim

WORKDIR /app

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

# Install additional dependencies for document processing
# Note: These would be replaced with actual document processing libraries in production
RUN pip install --no-cache-dir pandas openpyxl python-docx

# Copy backend code
COPY ./backend /app/backend

# Copy frontend files
COPY ./frontend /app/frontend

# Create uploads directory
RUN mkdir -p /app/uploads

# Set environment variables
ENV PYTHONPATH=/app
ENV PORT=7860

# Expose the port
EXPOSE 7860

# Run the FastAPI app
CMD ["python", "backend/main.py"]