Skip to content

Commit

Permalink
update phpox to latest version of BFR
Browse files Browse the repository at this point in the history
  • Loading branch information
glaslos committed Aug 13, 2023
1 parent 2fdce2e commit fc6ad89
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docker/phpox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,43 @@
FROM alpine:3.10
FROM alpine:3.18
#
# Install packages
RUN apk -U --no-cache add \
build-base \
file \
git \
make \
php7 \
php7-dev \
php7-tokenizer \
php \
php81-dev \
php-tokenizer \
python3 \
py3-pip \
python3-dev \
re2c && \
#
# Install bfr sandbox from git
git clone --depth=1 https://github.com/mushorg/BFR /opt/BFR && \
cd /opt/BFR && \
phpize7 && \
php --version && \
phpize && \
./configure \
--with-php-config=/usr/bin/php-config7 \
--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 && \
php --ini | grep Loaded && \
echo "zend_extension = "$(find /usr -name bfr.so) >> /etc/php81/php.ini && \
#
# Install PHP Sandbox
git clone --depth=1 https://github.com/mushorg/phpox /opt/phpox && \
cd /opt/phpox && \
pip3 install -r requirements.txt && \
pip install -r requirements.txt && \
make && \
#
# Clean up
apk del --purge build-base \
git \
php7-dev \
php-dev \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
Expand Down

0 comments on commit fc6ad89

Please # to comment.