mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 11:48:52 +00:00
37 lines
947 B
Docker
37 lines
947 B
Docker
FROM alpine:3.10
|
|
#
|
|
# Get and install dependencies & packages
|
|
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
|
apk -U --no-cache add \
|
|
curl \
|
|
git \
|
|
npm \
|
|
nodejs && \
|
|
npm install -g grunt-cli && \
|
|
npm install -g http-server && \
|
|
npm install npm@latest -g && \
|
|
#
|
|
# Install CyberChef
|
|
cd /root && \
|
|
git clone https://github.com/gchq/cyberchef --depth=1 && \
|
|
chown -R nobody:nobody cyberchef && \
|
|
cd cyberchef && \
|
|
npm install && \
|
|
grunt prod && \
|
|
mkdir -p /opt/cyberchef && \
|
|
mv build/prod/* /opt/cyberchef && \
|
|
cd / && \
|
|
#
|
|
# Clean up
|
|
apk del --purge git \
|
|
npm && \
|
|
rm -rf /root/* && \
|
|
rm -rf /var/cache/apk/*
|
|
#
|
|
# Healthcheck
|
|
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:8000'
|
|
#
|
|
# Set user, workdir and start spiderfoot
|
|
USER nobody:nobody
|
|
WORKDIR /opt/cyberchef
|
|
CMD ["http-server", "-p", "8000"]
|