Entreprenerdly commited on
Commit
c80afc5
·
verified ·
1 Parent(s): a0bda71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile CHANGED
@@ -2,6 +2,22 @@ FROM python:3.10.7
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  COPY ./requirements.txt /app/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install dependencies for building sqlite3 from source
6
+ RUN apt-get update && \
7
+ apt-get install -y wget build-essential && \
8
+ apt-get clean
9
+
10
+ # Ensure sqlite3 is upgraded to the latest version
11
+ RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3400100.tar.gz && \
12
+ tar xzf sqlite-autoconf-3400100.tar.gz && \
13
+ cd sqlite-autoconf-3400100 && \
14
+ ./configure && \
15
+ make && \
16
+ make install && \
17
+ ldconfig && \
18
+ cd .. && \
19
+ rm -rf sqlite-autoconf-3400100 sqlite-autoconf-3400100.tar.gz
20
+
21
  COPY ./requirements.txt /app/requirements.txt
22
 
23
  RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt