22 lines
744 B
Docker
22 lines
744 B
Docker
FROM node:23.3.0-bullseye@sha256:112545de0bcb0e8b737d961dc3b3c1b73dec32214d5478969a18778cd43619a9 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.2@sha256:6af3048593d473aace992c226b324ed8caea3a00ca930a32eae9108fb4ff0622
|
|
COPY --from=build /tmp/cyberchef/build/prod /usr/share/nginx/html
|
|
EXPOSE 8080
|