Skip to content

Commit 068ddea

Browse files
abnegateclaude
andcommitted
fix: remove redundant mongodb install and already-provided extensions
The utopia-base image already includes mongodb, pdo_mysql, pdo_pgsql, docker-cli, and docker-cli-compose. Only opcache and pgsql still need to be installed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 80d00f9 commit 068ddea

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

Dockerfile

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,14 @@ FROM appwrite/utopia-base:php-8.4-1.0.0 AS compile
1717
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1818

1919
RUN apk update && apk add --no-cache \
20-
libpq \
2120
libpq-dev \
2221
make \
2322
automake \
2423
autoconf \
2524
gcc \
2625
g++ \
27-
git \
28-
brotli-dev \
2926
linux-headers \
30-
docker-cli \
31-
docker-cli-compose \
32-
&& (pecl install mongodb-$PHP_MONGODB_VERSION \
33-
|| (git clone --depth 1 --branch $PHP_MONGODB_VERSION --recurse-submodules https://github.com/mongodb/mongo-php-driver.git /tmp/mongodb \
34-
&& cd /tmp/mongodb \
35-
&& git submodule update --init --recursive \
36-
&& phpize \
37-
&& ./configure \
38-
&& make \
39-
&& make install \
40-
&& cd / \
41-
&& rm -rf /tmp/mongodb)) \
42-
&& docker-php-ext-enable mongodb \
43-
&& docker-php-ext-install opcache pgsql pdo_mysql pdo_pgsql \
27+
&& docker-php-ext-install opcache pgsql \
4428
&& apk del libpq-dev \
4529
&& rm -rf /var/cache/apk/*
4630

0 commit comments

Comments
 (0)