bump tanner to latest master

This commit is contained in:
t3chn0m4g3
2019-08-16 14:43:10 +00:00
parent 786ab5c082
commit e0427cfc21
5 changed files with 30 additions and 25 deletions

View File

@ -1,8 +1,8 @@
FROM alpine
#
# Include dist
ADD dist/ /root/dist/
#
# Install packages
RUN apk -U --no-cache add \
build-base \
@ -15,7 +15,7 @@ RUN apk -U --no-cache add \
python3-dev \
re2c && \
pip3 install --no-cache-dir --upgrade pip && \
#
# Install bfr sandbox from git
git clone --depth=1 https://github.com/mushorg/BFR /opt/BFR && \
cd /opt/BFR && \
@ -28,14 +28,14 @@ RUN apk -U --no-cache add \
cd / && \
rm -rf /opt/BFR /tmp/* /var/tmp/* && \
echo "zend_extension = "$(find /usr -name bfr.so) >> /etc/php7/php.ini && \
#
# Install PHP Sandbox
git clone --depth=1 https://github.com/mushorg/phpox /opt/phpox && \
cd /opt/phpox && \
cp /root/dist/sandbox.py . && \
pip3 install -r requirements.txt && \
make && \
#
# Clean up
apk del --purge build-base \
git \
@ -43,7 +43,7 @@ RUN apk -U --no-cache add \
python3-dev && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
#
# Set workdir and start phpsandbox
STOPSIGNAL SIGKILL
USER nobody:nobody