22 lines
745 B
Docker
22 lines
745 B
Docker
FROM node:20.18.1-bullseye@sha256:74ad23a4ae13681054b3ea9f7c05e891b0c0e9c856b948e0628fba70973583da 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
|