Skip to content

Commit

Permalink
Add sqlite3 static dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Jun 20, 2024
1 parent 793d45e commit a04e454
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ RUN cd / && git clone https://github.com/python-cmake-buildsystem/python-cmake-b

WORKDIR /python-build

# Build a static sqlite3 lib
RUN wget -c -O sqlite.tar.gz https://www.sqlite.org/2024/sqlite-autoconf-3460000.tar.gz && \
mkdir -p sqlite && \
tar xf sqlite.tar.gz -C sqlite --strip-components=1 && \
cd sqlite && \
./configure CPPFLAGS="$CPPFLAGS -fPIC" -enable-static --disable-shared && \
make && \
make install

ARG PYTHON_VERSION

RUN cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/python \
Expand Down

0 comments on commit a04e454

Please sign in to comment.