|
|
@ -7,13 +7,12 @@ ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ENV WAPPALYZER_ROOT /home/wappalyzer/synced
|
|
|
|
ENV WAPPALYZER_ROOT /home/wappalyzer/synced
|
|
|
|
ENV WAPPALYZER_NODE_PATH /home/wappalyzer/node
|
|
|
|
ENV WAPPALYZER_NODE_PATH /home/wappalyzer/node
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Install packages
|
|
|
|
# Install packages
|
|
|
|
RUN apt-get update && apt-get install -y curl nodejs npm zip libfreetype6 libfontconfig
|
|
|
|
RUN apt-get update && apt-get install -y curl zip libfreetype6 libfontconfig
|
|
|
|
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_0.12 | bash -
|
|
|
|
|
|
|
|
RUN apt-get install -y nodejs
|
|
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
|
|
|
|
|
|
|
|
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add user
|
|
|
|
# Add user
|
|
|
|
RUN useradd -ms /bin/bash wappalyzer && usermod -a -G docker_env wappalyzer && echo "wappalyzer:wappalyzer" | chpasswd
|
|
|
|
RUN useradd -ms /bin/bash wappalyzer && usermod -a -G docker_env wappalyzer && echo "wappalyzer:wappalyzer" | chpasswd
|
|
|
@ -33,7 +32,7 @@ RUN su wappalyzer -c "mkdir $WAPPALYZER_NODE_PATH"
|
|
|
|
|
|
|
|
|
|
|
|
ADD node/package.json $WAPPALYZER_NODE_PATH/package.json
|
|
|
|
ADD node/package.json $WAPPALYZER_NODE_PATH/package.json
|
|
|
|
|
|
|
|
|
|
|
|
RUN npm install jsonlint jpm -g && su wappalyzer -c "cd $WAPPALYZER_NODE_PATH && npm install"
|
|
|
|
RUN npm install jsonlint jpm imagemin-cli -g && su wappalyzer -c "cd $WAPPALYZER_NODE_PATH && npm install"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# PhantomJS
|
|
|
|
# PhantomJS
|
|
|
|