File size: 503 Bytes
2c4f300
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11

# Expose port you want your app on
EXPOSE 443

# Upgrade pip and install requirements
COPY requirements.txt requirements.txt
RUN pip install -U pip
RUN pip install -r requirements.txt

# Copy app code and set working directory
COPY . .
WORKDIR /app
COPY . /app
COPY sqlqa.py /app/sqlqa.py
COPY spm.db /app/spm.db
COPY .env /app/.env
COPY /.chainlit/config.toml /app/.chainlit/config.toml


# Run
ENTRYPOINT ["chainlit", "run", "sqlqa.py",  "--host=0.0.0.0", "--port=443", "--headless"]