docker-cyberchef/Dockerfile
renovate-bot 0682c7cbed
All checks were successful
continuous-integration/drone/pr Build is passing
Update Node.js to v21
2024-10-17 17:06:17 +00:00

22 lines
744 B
Docker

FROM node:21.7.3-bullseye@sha256:7374e262a514dd73abd4f0c1f960d7392f08d277feea19e6068980e7bfbcf414 as build
# renovate: datasource=github-tags depName=gchq/CyberChef versioning=semver
ENV CYBERCHEF_VERSION v10.19.2
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.2@sha256:df375cd5df8774ee5aaf02216f480b6a849b749317c212606c6335cc57592239
COPY --from=build /tmp/cyberchef/build/prod /usr/share/nginx/html
EXPOSE 8080