tpotce/docker/cyberchef/Dockerfile

38 lines
948 B
Text
Raw Normal View History

2020-01-03 16:25:33 +00:00
FROM alpine:3.10
2019-08-16 17:14:58 +00:00
#
2018-07-12 09:03:33 +00:00
# Get and install dependencies & packages
2020-01-03 16:25:33 +00:00
RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
apk -U --no-cache add \
2018-07-12 09:03:33 +00:00
curl \
git \
npm \
nodejs && \
npm install -g grunt-cli && \
npm install -g http-server && \
npm install npm@latest -g && \
2019-08-16 17:14:58 +00:00
#
2018-07-12 09:03:33 +00:00
# Install CyberChef
cd /root && \
git clone https://github.com/gchq/cyberchef -b v9.21.0 && \
2018-07-12 09:03:33 +00:00
chown -R nobody:nobody cyberchef && \
cd cyberchef && \
npm install && \
grunt prod && \
mkdir -p /opt/cyberchef && \
mv build/prod/* /opt/cyberchef && \
cd / && \
2019-08-16 17:14:58 +00:00
#
2018-07-12 09:03:33 +00:00
# Clean up
apk del --purge git \
npm && \
rm -rf /root/* && \
rm -rf /var/cache/apk/*
2019-08-16 17:14:58 +00:00
#
2018-07-12 09:03:33 +00:00
# Healthcheck
HEALTHCHECK --retries=10 CMD curl -s -XGET 'http://127.0.0.1:8000'
2019-08-16 17:14:58 +00:00
#
2018-07-12 09:03:33 +00:00
# Set user, workdir and start spiderfoot
USER nobody:nobody
WORKDIR /opt/cyberchef
CMD ["http-server", "-p", "8000"]