tpotce/docker/nginx/builder/cyberchef/Dockerfile
2022-04-14 16:52:48 +00:00

18 lines
513 B
Docker

FROM node:17.9.0-alpine3.15 as builder
#
# Prep and build Cyberchef
RUN apk -U --no-cache add git && \
chown -R node:node /srv && \
npm install -g grunt-cli
WORKDIR /srv
USER node
RUN git clone https://github.com/gchq/cyberchef -b v9.37.1 . && \
NODE_OPTIONS=--max_old_space_size=2048 && \
npm install && \
grunt prod && \
cd build/prod && \
rm CyberChef_v9.37.1.zip && \
tar cvfz cyberchef.tgz *
#
FROM scratch AS exporter
COPY --from=builder /srv/build/prod/cyberchef.tgz /