mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 16:25:01 -04:00
Add dockerfile and push to ghcr
This commit is contained in:
parent
6ed9d4554a
commit
d8d9df1c54
3 changed files with 103 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM node:20-alpine3.18 AS cyberchef-build
|
||||
|
||||
ENV NODE_OPTIONS="--max_old_space_size=2048"
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY ./Gruntfile.js .
|
||||
COPY ./webpack.config.js .
|
||||
COPY ./package.json .
|
||||
COPY ./package-lock.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npx grunt prod
|
||||
|
||||
RUN unzip build/prod/*.zip
|
||||
|
||||
FROM nginx:1.25-alpine3.18 AS cyberchef
|
||||
|
||||
WORKDIR /usr/share/nginx/html/
|
||||
|
||||
COPY --from=cyberchef-build /usr/src/app/build/prod/ .
|
||||
|
||||
RUN rm BundleAnalyzerReport.html
|
Loading…
Add table
Add a link
Reference in a new issue