File tree Expand file tree Collapse file tree
src/Servers/WorkermanServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM ubuntu:24.04
2-
3- ARG DEBIAN_FRONTEND=noninteractive
4-
5- RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
6- RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
7- apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null
8-
9- RUN apt-get install -yqq php8.5-cli php8.5-xml php8.5-zip > /dev/null
1+ FROM php:8.5-cli
102
113COPY --from=composer/composer:latest-bin --link /composer /usr/local/bin/composer
124
13- RUN apt-get install -y php-pear php8.5-dev libevent-dev git > /dev/null && \
14- pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.5/cli/conf.d/30-event.ini
15-
165WORKDIR /workerman
17- COPY composer.json .
6+ COPY src/Servers/WorkermanServer/ composer.json .
187RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
19- COPY php.ini /etc/php/8.5/cli/php.ini
8+ COPY src/Servers/WorkermanServer/ php.ini /etc/php/8.5/cli/php.ini
209
21- COPY start.php .
10+ COPY src/Servers/WorkermanServer/ start.php .
2211
2312EXPOSE 8080
2413
You can’t perform that action at this time.
0 commit comments