Skip to content

Commit

Permalink
YAT
Browse files Browse the repository at this point in the history
  • Loading branch information
x-dean committed Nov 27, 2024
1 parent db2ba56 commit 2845980
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@ RUN git clone https://github.com/gchq/CyberChef.git /app
# Install Grunt CLI globally
RUN npm install -g grunt-cli

# Temporarily disable postinstall scripts and install dependencies
RUN npm_config_ignore_scripts=true npm install --legacy-peer-deps
# Install project dependencies (including local Grunt)
RUN npm install --legacy-peer-deps

# Debug: List installed packages
RUN npm list --depth=0 || true

# Manually execute necessary Grunt tasks
RUN npx grunt exec:fixCryptoApiImports && \
npx grunt exec:fixSnackbarMarkup && \
npx grunt exec:fixJimpModule
RUN ./node_modules/.bin/grunt exec:fixCryptoApiImports && \
./node_modules/.bin/grunt exec:fixSnackbarMarkup && \
./node_modules/.bin/grunt exec:fixJimpModule

# Build the production version of CyberChef
RUN npm run build:prod
Expand All @@ -33,4 +36,4 @@ EXPOSE 8080

# Serve the app using a lightweight HTTP server
RUN npm install -g serve
CMD ["serve", "-s", "build"]
CMD ["serve", "-s", "build"]

0 comments on commit 2845980

Please sign in to comment.