Entreprenerdly commited on
Commit
fd5cd29
·
verified ·
1 Parent(s): 75fca2b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10.7
2
+
3
+ WORKDIR /app
4
+
5
+ # Install pre-built sqlite3
6
+ RUN apt-get update && \
7
+ apt-get install -y sqlite3 libsqlite3-dev && \
8
+ apt-get clean
9
+
10
+ # Verify the sqlite3 version
11
+ RUN sqlite3 --version
12
+
13
+ COPY./requirements.txt /app/requirements.txt
14
+
15
+ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
16
+
17
+ COPY. /app
18
+
19
+ # Change permissions for the app directory
20
+ RUN chmod -R 777 /app
21
+
22
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]