Fix Docker build: install libsqlite3-dev for pdo_sqlite.
Build failed on Ubuntu because sqlite3 pkg-config headers were missing during extension compile. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
-2
@@ -1,11 +1,13 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# libsqlite3-dev 是编译 pdo_sqlite 所必需的
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
libsqlite3-dev \
|
||||
libzip-dev \
|
||||
libxml2-dev \
|
||||
unzip \
|
||||
git \
|
||||
&& docker-php-ext-install pdo_sqlite zip \
|
||||
&& a2enmod rewrite headers \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
Reference in New Issue
Block a user