Skip to content

Commit 54f4c5e

Browse files
committed
Downgrade Dockerfile to PHP 8.4 for Ubiquity Workerman Mongo
Updated all PHP 8.5 references to PHP 8.4 in the Dockerfile to ensure compatibility with the required PHP version. Adjusted package installations, configuration file paths, and extension setup accordingly.
1 parent e024283 commit 54f4c5e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

frameworks/PHP/ubiquity/ubiquity-workerman-mongo.dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ ARG DEBIAN_FRONTEND=noninteractive
55
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null
77
RUN apt-get update -yqq > /dev/null && \
8-
apt-get install -yqq git php8.5-cli php8.5-mongodb php8.5-xml php8.5-mbstring > /dev/null
8+
apt-get install -yqq git php8.4-cli php8.4-mongodb php8.4-xml php8.4-mbstring > /dev/null
99

1010
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1111

12-
RUN apt-get install -y php-pear php8.5-dev libevent-dev > /dev/null
13-
RUN pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.5/cli/conf.d/event.ini
12+
RUN apt-get install -y php-pear php8.4-dev libevent-dev > /dev/null
13+
RUN pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
1414

15-
COPY deploy/conf/php-async.ini /etc/php/8.5/cli/php.ini
15+
COPY deploy/conf/php-async.ini /etc/php/8.4/cli/php.ini
1616

1717
ADD ./ /ubiquity
1818

@@ -31,9 +31,9 @@ RUN chmod 777 -R /ubiquity/.ubiquity/*
3131

3232
COPY deploy/conf/workerman/mongo/workerServices.php app/config/workerServices.php
3333

34-
RUN echo "opcache.preload=/ubiquity/app/config/preloader.script.php" >> /etc/php/8.5/cli/php.ini
35-
RUN echo "opcache.jit_buffer_size=128M\nopcache.jit=tracing\n" >> /etc/php/8.5/cli/php.ini
34+
RUN echo "opcache.preload=/ubiquity/app/config/preloader.script.php" >> /etc/php/8.4/cli/php.ini
35+
RUN echo "opcache.jit_buffer_size=128M\nopcache.jit=tracing\n" >> /etc/php/8.4/cli/php.ini
3636

3737
EXPOSE 8080
3838

39-
CMD /ubiquity/vendor/bin/Ubiquity serve -t=workerman -p=8080 -h=0.0.0.0
39+
CMD /ubiquity/vendor/bin/Ubiquity serve -t=workerman -p=8080 -h=0.0.0.0

0 commit comments

Comments
 (0)