CatPtain commited on
Commit
26254e6
·
verified ·
1 Parent(s): 4c9c906

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -14,7 +14,6 @@ ENV PYTHONUNBUFFERED=1
14
  # 安装必要的包
15
  RUN apt-get update && apt-get install -y \
16
  sqlite3 \
17
- php8.2-sqlite3 \
18
  cron \
19
  wget \
20
  unzip \
@@ -23,6 +22,10 @@ RUN apt-get update && apt-get install -y \
23
  curl \
24
  && rm -rf /var/lib/apt/lists/*
25
 
 
 
 
 
26
  # 下载并安装SQLite Integration插件
27
  RUN cd /tmp && \
28
  wget https://downloads.wordpress.org/plugin/sqlite-database-integration.2.1.5.zip && \
 
14
  # 安装必要的包
15
  RUN apt-get update && apt-get install -y \
16
  sqlite3 \
 
17
  cron \
18
  wget \
19
  unzip \
 
22
  curl \
23
  && rm -rf /var/lib/apt/lists/*
24
 
25
+ # 启用PHP SQLite扩展
26
+ RUN docker-php-ext-install pdo_sqlite \
27
+ && docker-php-ext-enable pdo_sqlite
28
+
29
  # 下载并安装SQLite Integration插件
30
  RUN cd /tmp && \
31
  wget https://downloads.wordpress.org/plugin/sqlite-database-integration.2.1.5.zip && \