mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
bump tanner to latest master
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user