Skip to content

Commit efb8968

Browse files
committed
recompile
1 parent 20bce38 commit efb8968

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docker/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,21 @@ RUN apt-get update && apt-get install -y \
99
libjpeg-dev libpng-dev libwebp-dev \
1010
unzip git
1111

12-
# Build and install latest SQLite (3.49.1+)
12+
# Build and install latest SQLite (3.49.1)
1313
RUN wget https://www.sqlite.org/2025/sqlite-autoconf-3490100.tar.gz && \
1414
tar xzf sqlite-autoconf-3490100.tar.gz && \
1515
cd sqlite-autoconf-3490100 && \
1616
./configure --prefix=/usr/local && make && make install && \
1717
cd .. && rm -rf sqlite-autoconf-3490100*
1818

19-
# Rebuild PHP extensions using the new SQLite (must be in /usr/local/lib)
20-
ENV LD_LIBRARY_PATH=/usr/local/lib
19+
# Make sure PHP uses the correct SQLite headers and libs
20+
ENV CPPFLAGS="-I/usr/local/include"
21+
ENV LDFLAGS="-L/usr/local/lib"
22+
ENV LD_LIBRARY_PATH="/usr/local/lib"
2123

24+
# Rebuild PHP extensions using correct SQLite version
2225
RUN docker-php-ext-configure gd --with-jpeg --with-webp && \
2326
docker-php-ext-install pdo pdo_sqlite gd
24-
2527
# Copy application code
2628
WORKDIR /var/www
2729
COPY web/ web/

0 commit comments

Comments
 (0)