Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions frameworks/PHP/webman/support/bootstrap/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ class Date implements Bootstrap {
*/
public static function start($worker)
{
self::$date = gmdate(DATE_RFC7231);
self::$date = gmdate('D, d M Y H:i:s \G\M\T');
Timer::add(1, function() {
self::$date = gmdate(DATE_RFC7231);
self::$date = gmdate('D, d M Y H:i:s \G\M\T');
});
}

Expand Down
8 changes: 4 additions & 4 deletions frameworks/PHP/webman/webman-pgsql.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null

RUN apt-get install -yqq php8.4-cli php8.4-pgsql php8.4-xml > /dev/null
RUN apt-get install -yqq php8.5-cli php8.5-pgsql php8.5-xml > /dev/null

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

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

WORKDIR /webman
COPY --link . .

RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
COPY php.ini /etc/php/8.4/cli/conf.d/10-opcache.ini
COPY php.ini /etc/php/8.5/cli/conf.d/10-opcache.ini

EXPOSE 8080

Expand Down
8 changes: 4 additions & 4 deletions frameworks/PHP/webman/webman.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null

RUN apt-get install -yqq php8.4-cli php8.4-pgsql php8.4-xml > /dev/null
RUN apt-get install -yqq php8.5-cli php8.5-pgsql php8.5-xml > /dev/null

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

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

WORKDIR /webman
COPY --link . .

RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
COPY php.ini /etc/php/8.4/cli/conf.d/10-opcache.ini
COPY php.ini /etc/php/8.5/cli/conf.d/10-opcache.ini

EXPOSE 8080

Expand Down
Loading