leo-bourrel commited on
Commit
21b5e48
·
1 Parent(s): bed2805

feat: build latest sqlite from source

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -2
Dockerfile CHANGED
@@ -14,11 +14,21 @@ RUN apt-get update && apt-get install -y \
14
  libgomp1 \
15
  libatlas-base-dev \
16
  liblapack-dev \
17
- sqlite3 \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
  COPY ./ /app/
21
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  RUN pip3 install -r /app/requirements.txt
24
 
@@ -26,4 +36,4 @@ EXPOSE 7860
26
 
27
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
28
 
29
- ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
14
  libgomp1 \
15
  libatlas-base-dev \
16
  liblapack-dev \
17
+ wget \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
  COPY ./ /app/
21
 
22
+ # INSTALL LATEST SQLITE3 FROM SOURCE
23
+ RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3430200.tar.gz
24
+ RUN tar xvfz sqlite-autoconf-3430200.tar.gz
25
+ RUN mv sqlite-autoconf-3430200 /usr/local/share/sqlite3
26
+ WORKDIR /usr/local/share/sqlite3/
27
+ RUN ./configure
28
+ RUN make -j
29
+ RUN make install
30
+ RUN cp sqlite3 /usr/bin/
31
+ WORKDIR /app
32
 
33
  RUN pip3 install -r /app/requirements.txt
34
 
 
36
 
37
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
38
 
39
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]