Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php83.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY composer.json /usr/local/src/
RUN composer update --ignore-platform-reqs --optimize-autoloader \
--no-plugins --no-scripts --prefer-dist

FROM appwrite/utopia-base:php-8.3-0.1.0 as compile
FROM appwrite/utopia-base:php-8.3-2.1.8@sha256:85dcc0eb0defa3c4996cc96fbf05ac191d857f805d20b3b541307547083ad8be as compile

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid enabling MongoDB twice in the new base image

The 2.1.8 base image already ships mongodb.so and enables it in /usr/local/etc/php/conf.d/mongodb.ini; the existing RUN echo extension=mongodb.so ... at line 42 appends a second load directive. PHP will emit a “Module 'mongodb' is already loaded” warning on each invocation in the resulting container.

Prompt To Fix With AI
This is a comment left during a code review.
Path: php83.Dockerfile
Line: 14

Comment:
**Avoid enabling MongoDB twice in the new base image**

The 2.1.8 base image already ships `mongodb.so` and enables it in `/usr/local/etc/php/conf.d/mongodb.ini`; the existing `RUN echo extension=mongodb.so ...` at line 42 appends a second load directive. PHP will emit a “Module 'mongodb' is already loaded” warning on each invocation in the resulting container.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

🟡 Minor · bug · Reply if this doesn't apply.


ENV PHP_MONGO_VERSION=2.2.1

Expand Down
Loading