Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure when building #1989

Open
JJK96 opened this issue Feb 26, 2025 · 0 comments
Open

Failure when building #1989

JJK96 opened this issue Feb 26, 2025 · 0 comments
Labels

Comments

@JJK96
Copy link

JJK96 commented Feb 26, 2025

Describe the bug
While building the docker container I get an error on grunt-cli. It was not installed successfully.

To Reproduce

$ docker build --tag cyberchef --ulimit nofile=10000 .
docker run -p 8080:80 cyberchef
[+] Building 5.5s (10/11)                                                                                                      docker:default
 => [internal] load build definition from Dockerfile                                                                                     0.0s
 => => transferring dockerfile: 203B                                                                                                     0.0s
 => [internal] load metadata for docker.io/library/node:18-alpine                                                                        0.8s
 => [internal] load metadata for docker.io/library/nginx:1.25-alpine3.18                                                                 0.8s
 => [internal] load .dockerignore                                                                                                        0.0s
 => => transferring context: 59B                                                                                                         0.0s
 => [internal] load build context                                                                                                        0.2s
 => => transferring context: 49.98kB                                                                                                     0.2s
 => [build 1/4] FROM docker.io/library/node:18-alpine@sha256:e0340f26173b41066d68e3fe9bfbdb6571ab3cad0a4272919a52e36f4ae56925            0.0s
 => CACHED [cyberchef 1/2] FROM docker.io/library/nginx:1.25-alpine3.18@sha256:31bad00311cb5eeb8a6648beadcf67277a175da89989f14727420a80  0.0s
 => CACHED [build 2/4] COPY . .                                                                                                          0.0s
 => CACHED [build 3/4] RUN npm ci                                                                                                        0.0s
 => ERROR [build 4/4] RUN npm run build                                                                                                  4.4s
------
 > [build 4/4] RUN npm run build:
0.229
0.229 > [email protected] build
0.229 > npx grunt prod
0.229
1.223 npm warn exec The following package was not found and will be installed: [email protected]
3.571 npm warn deprecated [email protected]: This package is no longer supported.
3.853 npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
3.895 npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
4.345 grunt-cli: The grunt command line interface (v1.4.3)
4.346
4.346 Fatal error: Unable to find local grunt.
4.346
4.346 If you're seeing this message, grunt hasn't been installed locally to
4.346 your project. For more information about installing and configuring grunt,
4.346 please see the Getting Started guide:
4.346
4.346 https://gruntjs.com/getting-started
------
Dockerfile:5
--------------------
   3 |     COPY . .
   4 |     RUN npm ci
   5 | >>> RUN npm run build
   6 |
   7 |     FROM nginx:1.25-alpine3.18 AS cyberchef
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 99

Desktop (if relevant, please complete the following information):

  • OS: 6.11.0-14-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 10 23:05:39 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux
  • System: Running in parallels VM on Mac M1
  • Browser: not relevant
  • CyberChef version: git commit d3357d2 (current master)
@JJK96 JJK96 added the bug label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant