21 lines
745 B
Docker
21 lines
745 B
Docker
FROM node:20.19.0-bullseye@sha256:592d1ea2f45d8c96067f81d3a4a6f0d36349c5dab97c14357333e74bf31f1a7d as build
|
|
|
|
# renovate: datasource=github-tags depName=gchq/CyberChef versioning=semver
|
|
ENV CYBERCHEF_VERSION v10.19.4
|
|
|
|
USER node
|
|
|
|
RUN set -ex; \
|
|
mkdir /tmp/cyberchef;
|
|
|
|
WORKDIR /tmp/cyberchef
|
|
|
|
RUN set -ex; \
|
|
git clone --branch $CYBERCHEF_VERSION https://github.com/gchq/CyberChef.git .; \
|
|
npm install; \
|
|
npx grunt prod; \
|
|
rm /tmp/cyberchef/build/prod/BundleAnalyzerReport.html /tmp/cyberchef/build/prod/CyberChef_$CYBERCHEF_VERSION.zip;
|
|
|
|
FROM nginxinc/nginx-unprivileged:1.26.3@sha256:e3bbd65240a9eafbb86c814a523cf3dec78d6a5be663f4fe8b5371a7b73fd4be
|
|
COPY --from=build /tmp/cyberchef/build/prod /usr/share/nginx/html
|
|
EXPOSE 8080
|