21 lines
745 B
Docker
21 lines
745 B
Docker
FROM node:20.18.3-bullseye@sha256:eaf0b98ca475d59fcb5b6571fab3dc7486b74f4123672af4a8eddbb4c3f35a1e 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:7ca5215ddc4384f5062458082944915ff23725efe0dae206b62e7e9a31b331fc
|
|
COPY --from=build /tmp/cyberchef/build/prod /usr/share/nginx/html
|
|
EXPOSE 8080
|