-
-
Save DynaMc/15cdb9f0a8d6ef6c25b56828fe3f3cba to your computer and use it in GitHub Desktop.
CyberChef Docker Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# Dockerfile to create a CyberChef Container | |
# Based on Ubuntu 16.04, Node.js 7.x | |
# | |
# Clean build: docker build --no-cache=true --tag=cyberchef:<version> . | |
# Incremental build: docker build --tag=cyberchef:<version> . | |
# Run container: docker run -d -p 127.0.0.1:8080:80 --name cyberchef -t cyberchef:<version> | |
# example: docker run -d -p 127.0.0.1:8080:80 --name cyberchef -t cyberchef:1.0 | |
############################################################ | |
FROM ubuntu:16.04 | |
MAINTAINER Matt Georgy ([email protected]) | |
LABEL version="1.0" | |
ENV DEBIAN_FRONTEND noninteractive | |
################### Version Information #################### | |
# 1.0: Initial Release | |
############################################################ | |
################ Baseline OS INSTALLATION ################## | |
RUN apt-get update && apt-get -y dist-upgrade && apt-get clean | |
############################################################ | |
############## Support Package INSTALLATION ################ | |
RUN apt-get install -y curl python-software-properties git build-essential apache2 | |
############################################################ | |
############### Node.js & NPM INSTALLATION ################# | |
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - | |
RUN apt-get install -y nodejs | |
############################################################ | |
################# Grunt NPM INSTALLATION ################### | |
RUN npm install -g grunt-cli | |
############################################################ | |
################## Clone CyberChef Repo #################### | |
RUN git clone https://github.com/gchq/CyberChef.git | |
WORKDIR /CyberChef | |
RUN npm install | |
############################################################ | |
################## Run Grunt Prod Build #################### | |
RUN grunt prod | |
############################################################ | |
################## Copy Production Build ################### | |
RUN cp -r /CyberChef/build/prod/* /var/www/html/ | |
############################################################ | |
EXPOSE 80 | |
ENV APACHE_RUN_USER www-data | |
ENV APACHE_RUN_GROUP www-data | |
ENV APACHE_PID_FILE /var/run/apache2.pid | |
ENV APACHE_RUN_DIR /var/run/apache2 | |
ENV APACHE_LOCK_DIR /var/lock/apache2 | |
ENV APACHE_LOG_DIR /var/log/apache2 | |
ENV LANG C | |
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment