File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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)
1313RUN 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
2225RUN docker-php-ext-configure gd --with-jpeg --with-webp && \
2326 docker-php-ext-install pdo pdo_sqlite gd
24-
2527# Copy application code
2628WORKDIR /var/www
2729COPY web/ web/
You can’t perform that action at this time.
0 commit comments