mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
tweaking for nginx, cyberchef, elasticvue
create builder for cyberchef and elasticvue based on respective masters builders will build webapps and copy output to nginx html folder as tgz some tweaking for elasticvue to properly load original favicon with cyberchef now run as nginx webapp we gain another 40MB of RAM while webapps will be built on AMD64 all final docker images can now be built as multi arch images for AMD64 and ARM64
This commit is contained in:
17
docker/nginx/builder/cyberchef/Dockerfile
Normal file
17
docker/nginx/builder/cyberchef/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
FROM node:10.24.1-alpine3.11 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.32.3 . && \
|
||||
NODE_OPTIONS=--max_old_space_size=2048 && \
|
||||
npm install && \
|
||||
grunt prod && \
|
||||
cd build/prod && \
|
||||
tar cvfz cyberchef.tgz *
|
||||
#
|
||||
FROM scratch AS exporter
|
||||
COPY --from=builder /srv/build/prod/cyberchef.tgz /
|
3
docker/nginx/builder/cyberchef/build.sh
Executable file
3
docker/nginx/builder/cyberchef/build.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
# Needs buildx to build. Run tpotce/bin/setup-builder.sh first
|
||||
docker buildx build --output ../../dist/html/cyberchef/ .
|
Reference in New Issue
Block a user