pnicewiczoig commited on
Commit
2c4f300
·
1 Parent(s): 3444392

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ # Expose port you want your app on
4
+ EXPOSE 443
5
+
6
+ # Upgrade pip and install requirements
7
+ COPY requirements.txt requirements.txt
8
+ RUN pip install -U pip
9
+ RUN pip install -r requirements.txt
10
+
11
+ # Copy app code and set working directory
12
+ COPY . .
13
+ WORKDIR /app
14
+ COPY . /app
15
+ COPY sqlqa.py /app/sqlqa.py
16
+ COPY spm.db /app/spm.db
17
+ COPY .env /app/.env
18
+ COPY /.chainlit/config.toml /app/.chainlit/config.toml
19
+
20
+
21
+ # Run
22
+ ENTRYPOINT ["chainlit", "run", "sqlqa.py", "--host=0.0.0.0", "--port=443", "--headless"]