update, tweaking, add

add wordpot incl. json logging with activated plugins
bump snare, tanner, phpox, tanner_redis to latest master and to alpine 3.19
This commit is contained in:
t3chn0m4g3
2024-03-11 17:33:53 +01:00
parent 4baac7ac04
commit 1da35284be
9 changed files with 98 additions and 100 deletions

View File

@ -1,42 +1,42 @@
FROM alpine:3.15
FROM alpine:3.19
#
# Install packages
RUN apk -U --no-cache add \
build-base \
file \
git \
make \
php7 \
php7-dev \
py3-aiohttp \
python3 \
python3-dev \
re2c && \
build-base \
file \
git \
make \
php83 \
php83-dev \
py3-aiohttp \
python3 \
python3-dev \
re2c && \
#
# Install bfr sandbox from git
git clone https://github.com/mushorg/BFR /opt/BFR && \
git clone https://github.com/mushorg/BFR -b v1.0.0 /opt/BFR && \
cd /opt/BFR && \
# git checkout 508729202428a35bcc6bb27dd97b831f7e5009b5 && \
phpize7 && \
# git checkout 91a8a4e155875c50b69d5c6af454e304994815a7 && \
phpize83 && \
./configure \
--with-php-config=/usr/bin/php-config7 \
--with-php-config=/usr/bin/php-config83 \
--enable-bfr && \
make && \
make install && \
cd / && \
rm -rf /opt/BFR /tmp/* /var/tmp/* && \
echo "zend_extension = "$(find /usr -name bfr.so) >> /etc/php7/php.ini && \
echo "zend_extension = "$(find /usr -name bfr.so) >> /etc/php83/php.ini && \
#
# Install PHP Sandbox
git clone https://github.com/mushorg/phpox /opt/phpox && \
cd /opt/phpox && \
git checkout a62c8136ec7b3ebab0c989f4235e2960175121f8 && \
#git checkout a62c8136ec7b3ebab0c989f4235e2960175121f8 && \
make && \
#
# Clean up
apk del --purge build-base \
git \
php7-dev \
php83-dev \
python3-dev && \
rm -rf /root/* /var/cache/apk/* /opt/phpox/.git
#