File size: 742 Bytes
9e2a8ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26c372a
 
5e18ceb
9e2a8ba
 
 
 
 
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
31
32
FROM python:3.12-slim

# Install sqlite-web
RUN pip3 install psycopg2-binary

# Set working directory
WORKDIR /app

# Install build dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements and install dependencies
COPY requirements_main.txt requirements.txt
RUN pip install -r requirements.txt

# Copy app source code
COPY utils_semantic_search.py .
COPY main_fast.py .
COPY models_semantic_search.py .
COPY settings.py .

COPY public /app/static/public
#COPY index.html /app/static/index.html

# Expose port 7860
EXPOSE 7860

# Command to run FastAPI app with uvicorn
CMD ["uvicorn", "main_fast:app", "--host", "0.0.0.0", "--port", "7860"]