Sign inSign up

aalmanmohd/cyberchef

By aalmanmohd

Updated about 4 years ago

Build of Cyberchef in docker

Image
0

846

aalmanmohd/cyberchef repository overview

Dockerfile:

FROM nginx:latest
COPY src/download.sh /
RUN apt update
RUN apt install jq wget zip -y
RUN ./download.sh
RUN rm ./download.sh
RUN apt purge jq wget zip -y
EXPOSE 80
ENTRYPOINT ["nginx", "-g", "daemon off;"]

download.sh

#!/bin/sh
URL=$(curl -s 'https://api.github.com/repos/gchq/cyberchef/releases/latest' | jq -r '.assets[] | .browser_download_url')
name=$(echo $URL | cut -d '/' -f 9 | rev | cut -c5- | rev)
wget $URL
mkdir cc
unzip ${name}.zip -d ./cc
mv ./cc/${name}.html ./cc/index.html
cp -r ./cc/* /usr/share/nginx/html/
rm -rf ./cc/
rm ${name}.zip

Tag summary

Content type

Image

Digest

sha256:b8117821c

Size

86 MB

Last updated

about 4 years ago

docker pull aalmanmohd/cyberchef