1 parent
e2e62cf5c9
commit
ff23fe51c6
1 file changed
+20
-3
+20
-3
@@ -24,7 +24,8 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
python3 \
|
||||
python3-pip \
|
||||
dotnet-sdk-10.0 \
|
||||
openssl-devel
|
||||
openssl-devel \
|
||||
zeromq-devel
|
||||
|
||||
# === setup user ===
|
||||
RUN useradd -ms /bin/bash user && \
|
||||
@@ -80,7 +81,7 @@ RUN dotnet tool install --tool-path /usr/local/bin dotnet-ef && \
|
||||
| tar xz -C /usr/local/bin/omnisharp && \
|
||||
chmod +x /usr/local/bin/omnisharp/OmniSharp
|
||||
|
||||
# PHP
|
||||
# PHP + ZeroMQ
|
||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
dnf -y install https://rpm.henderkes.com/static-php-1-0.noarch.rpm && \
|
||||
dnf -y module enable php-zts:static-8.5 && \
|
||||
@@ -104,7 +105,23 @@ RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||
php-zts-bcmath \
|
||||
php-zts-mysqli \
|
||||
php-zts-imagick \
|
||||
php-zts-grpc && \
|
||||
php-zts-grpc \
|
||||
php-zts-devel \
|
||||
autoconf \
|
||||
automake \
|
||||
libtool \
|
||||
make && \
|
||||
git clone --depth 1 https://github.com/chrisBirmingham/phpzmq.git /tmp/phpzmq && \
|
||||
cd /tmp/phpzmq && \
|
||||
phpize-zts && \
|
||||
./configure --with-php-config=/usr/bin/php-config-zts --with-zmq && \
|
||||
make -j"$(nproc)" && \
|
||||
make install && \
|
||||
PHP_INI_SCAN_DIR="$(php-config-zts --ini-dir)" && \
|
||||
mkdir -p "${PHP_INI_SCAN_DIR}" && \
|
||||
echo 'extension=zmq.so' > "${PHP_INI_SCAN_DIR}/40-zmq.ini" && \
|
||||
cd / && rm -rf /tmp/phpzmq && \
|
||||
dnf remove -y php-zts-devel autoconf automake libtool && \
|
||||
curl -fsSL https://getcomposer.org/installer \
|
||||
| php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
|
||||
Reference in new issue
Block a user