We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When building a docker image locally from the WebApp.Dockerfile file, I got the following error during the npm ci running phase:
WebApp.Dockerfile
npm ci
[1/2] STEP 1/10: FROM node:20-alpine AS frontend [1/2] STEP 2/10: RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app --> Using cache 33a4f527234eda22e8f14970909cab6a3fb36f87ad61edb91320c5f959f7c201 --> 33a4f527234e [1/2] STEP 3/10: WORKDIR /home/node/app --> Using cache fcade1480bfcfee999c2c0d743edccdb3cae68c7cb3ca8e6be5d9483d545bbaa --> fcade1480bfc [1/2] STEP 4/10: COPY ./frontend/package*.json ./ --> Using cache 70ca3b0ccb66148e2cfcb564c9ddeec5ecd6a333d35d4fe7e4b8c2a6c63f8032 --> 70ca3b0ccb66 [1/2] STEP 5/10: USER node --> Using cache 8563e696bb8a8ce85542225ba4392fe129dee6a1d03e49036de4b36aa45869f0 --> 8563e696bb8a [1/2] STEP 6/10: RUN npm ci npm error code EUSAGE npm error npm error The `npm ci` command can only install with an existing package-lock.json or npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or npm error later to generate a package-lock.json file, then try again. npm error npm error Clean install a project npm error npm error Usage: npm error npm ci npm error npm error Options: npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit] npm error [--no-bin-links] [--no-fund] [--dry-run] npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] npm error [-ws|--workspaces] [--include-workspace-root] [--install-links] npm error npm error aliases: clean-install, ic, install-clean, isntall-clean npm error npm error Run "npm help ci" for more info npm error A complete log of this run can be found in: /home/node/.npm/_logs/2024-09-06T09_42_55_696Z-debug-0.log Error: building at STEP "RUN npm ci": while running runtime: exit status 1
To Reproduce Steps to reproduce the behavior:
sudo podman build -t sample-chatgpt:v1 -f WebApp.Dockerfile .
Expected behavior
The docker image build runs without any error.
Additional context
Podman version information:
Client: Podman Engine Version: 5.2.2 API Version: 5.2.2 Go Version: go1.22.6 Built: Thu Jan 1 01:00:00 1970 OS/Arch: linux/amd64
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 30 days with no activity.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When building a docker image locally from the
WebApp.Dockerfile
file, I got the following error during thenpm ci
running phase:To Reproduce
Steps to reproduce the behavior:
sudo podman build -t sample-chatgpt:v1 -f WebApp.Dockerfile .
commandExpected behavior
The docker image build runs without any error.
Additional context
Podman version information:
The text was updated successfully, but these errors were encountered: