Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (33 sloc) 998 Bytes
#
# This Docker image encapsulates the JSDetox malware analysis tool by @sven_t
# from http://www.relentless-coding.com/projects/jsdetox
#
# To run this image after installing Docker, use the following command:
# sudo docker run --rm -p 3000:3000 remnux/jsdetox
# Then, connect to http://localhost:3000 using your web browser.
#
FROM ubuntu:14.04
MAINTAINER Lenny Zeltser (@lennyzeltser, www.zeltser.com)
USER root
RUN apt-get update && apt-get install -y \
git \
ruby \
ruby-dev \
bundler \
zlib1g-dev \
build-essential && \
rm -rf /var/lib/apt/lists/*
RUN groupadd -r nonroot && \
useradd -r -g nonroot -d /home/nonroot -s /sbin/nologin -c "Nonroot User" nonroot && \
mkdir /home/nonroot && \
chown -R nonroot:nonroot /home/nonroot
USER nonroot
WORKDIR /home/nonroot
RUN git clone https://github.com/svent/jsdetox.git
USER root
WORKDIR /home/nonroot/jsdetox
RUN bundle install
USER nonroot
EXPOSE 3000
WORKDIR /home/nonroot/jsdetox
CMD ./jsdetox -l $HOSTNAME 2>/dev/null