docker-cyberchef/Dockerfile
Magnus Walbeck 8c4e20c7f4
All checks were successful
Build and publish / lint (push) Successful in 4s
Build and publish / build (push) Successful in 6m25s
Revert "Update nginxinc/nginx-unprivileged Docker tag to v1.28.0 (#392)"
This reverts commit 5fff392e0e.
2025-04-26 14:57:10 +02:00

21 lines
745 B
Docker

FROM node:20.19.1-bullseye@sha256:5fb777409dffa9cff4f1ccfff3fb609ad8d1a212f499cd360b6e84f04a1fbb77 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:cd83270b8e0019ee7687198a473842b45c1ef31126229d511afd96c8bba625bc
COPY --from=build /tmp/cyberchef/build/prod /usr/share/nginx/html
EXPOSE 8080