Unable to build docker image
See original GitHub issueIssue Description
Logs: https://github.com/codetheweb/muse/runs/4938651566?check_suite_focus=true
#9 [base 6/6] RUN yarn install --prod
#9 0.402 yarn install v1.22.15
#9 0.504 [1/5] Validating package.json...
#9 0.508 [2/5] Resolving packages...
#9 0.740 [3/5] Fetching packages...
#9 11.50 info fsevents@2.3.2: The platform "linux" is incompatible with this module.
#9 11.50 info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
#9 11.50 [4/5] Linking dependencies...
#9 12.77 [5/5] Building fresh packages...
#9 13.39 error /usr/app/node_modules/@discordjs/opus: Command failed.
#9 13.39 Exit code: 1
#9 13.39 Command: node-pre-gyp install --fallback-to-build
#9 13.39 Arguments:
#9 13.39 Directory: /usr/app/node_modules/@discordjs/opus
#9 13.39 Output:
#9 13.39 node-pre-gyp info it worked if it ends with ok
#9 13.39 node-pre-gyp info using node-pre-gyp@0.4.2
#9 13.39 node-pre-gyp info using node@16.13.2 | linux | arm64
#9 13.39 node-pre-gyp info check checked for "/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2/opus.node" (not found)
#9 13.39 node-pre-gyp http GET https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm64-musl-1.2.2.tar.gz
#9 13.39 node-pre-gyp ERR! install response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm64-musl-1.2.2.tar.gz
#9 13.39 node-pre-gyp WARN Pre-built binaries not installable for @discordjs/opus@0.7.0 and node@16.13.2 (node-v93 ABI, musl) (falling back to source compile with node-gyp)
#9 13.39 node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/discordjs/opus/releases/download/v0.7.0/opus-v0.7.0-node-v93-napi-v3-linux-arm64-musl-1.2.2.tar.gz
#9 13.39 gyp info it worked if it ends with ok
#9 13.39 gyp info using node-gyp@8.3.0
#9 13.39 gyp info using node@16.13.2 | linux | arm64
#9 13.39 gyp info ok
#9 13.39 gyp info it worked if it ends with ok
#9 13.39 gyp info using node-gyp@8.3.0
#9 13.39 gyp info using node@16.13.2 | linux | arm64
#9 13.39 gyp ERR! find Python
#9 13.39 gyp ERR! find Python Python is not set from command line or npm configuration
#9 13.39 gyp ERR! find Python Python is not set from environment variable PYTHON
#9 13.39 gyp ERR! find Python checking if "python3" can be used
#9 13.39 gyp ERR! find Python - "python3" is not in PATH or produced an error
#9 13.39 gyp ERR! find Python checking if "python" can be used
#9 13.39 gyp ERR! find Python - "python" is not in PATH or produced an error
#9 13.39 gyp ERR! find Python
#9 13.39 gyp ERR! find Python **********************************************************
#9 13.39 gyp ERR! find Python You need to install the latest version of Python.
#9 13.39 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#9 13.39 gyp ERR! find Python you can try one of the following options:
#9 13.39 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#9 13.39 gyp ERR! find Python (accepted by both node-gyp and npm)
#9 13.39 gyp ERR! find Python - Set the environment variable PYTHON
#9 13.39 gyp ERR! find Python - Set the npm configuration variable python:
#9 13.39 gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#9 13.39 gyp ERR! find Python For more information consult the documentation at:
#9 13.39 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#9 13.39 gyp ERR! find Python **********************************************************
#9 13.39 gyp ERR! find Python
#9 13.39 gyp ERR! configure error
#9 13.39 gyp ERR! stack Error: Could not find any Python installation to use
#9 13.39 gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
#9 13.39 gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
#9 13.39 gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
#9 13.39 gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
#9 13.39 gyp ERR! stack at exithandler (node:child_process:404:5)
#9 13.39 gyp ERR! stack at ChildProcess.errorhandler (node:child_process:416:5)
#9 13.39 gyp ERR! stack at ChildProcess.emit (node:events:390:28)
#9 13.39 gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
#9 13.39 gyp ERR! stack at onErrorNT (node:internal/child_process:477:16)
#9 13.39 gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
#9 13.39 gyp ERR! System Linux 4.14.256-197.484.amzn2.aarch64
#9 13.39 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2/opus.node" "--module_name=opus" "--module_path=/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
#9 13.39 gyp ERR! cwd /usr/app/node_modules/@discordjs/opus
#9 13.39 gyp ERR! node -v v16.13.2
#9 13.39 gyp ERR! node-gyp -v v8.3.0
#9 13.39 gyp ERR! not ok
#9 13.39 node-pre-gyp ERR! build error
#9 13.39 node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2/opus.node --module_name=opus --module_path=/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
#9 13.39 node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/app/node_modules/@discordjs/node-pre-gyp/lib/util/compile.js:85:20)
#9 13.39 node-pre-gyp ERR! stack at ChildProcess.emit (node:events:390:28)
#9 13.39 node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
#9 13.39 node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
#9 13.39 node-pre-gyp ERR! System Linux 4.14.256-197.484.amzn2.aarch64
#9 13.39 node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/app/node_modules/@discordjs/opus/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
#9 13.39 node-pre-gyp ERR! cwd /usr/app/node_modules/@discordjs/opus
#9 13.39 node-pre-gyp ERR! node -v v16.13.2
#9 13.39 node-pre-gyp ERR! node-pre-gyp -v v0.4.2
#9 13.39 node-pre-gyp ERR! not ok
#9 13.39 Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2/opus.node --module_name=opus --module_path=/usr/app/node_modules/@discordjs/opus/prebuild/node-v93-napi-v3-linux-arm64-musl-1.2.2 --napi_version=8 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
#9 13.39 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#9 ERROR: process "/bin/sh -c yarn install --prod" did not complete successfully: exit code: 1
Based on the log provided, node-gyp requires some extra dependencies python3, make, gcc (https://github.com/nodejs/node-gyp#on-unix)
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Unable to build my docker image
I have a created a project as well as dockerfiles inside it. I'm trying to run it from docker but I keep getting...
Read more >Unable to build docker image [duplicate] - Stack Overflow
Closed 3 years ago. i want to build a docker image. I do this: $ docker build -f Dockerfile -t $IMAGE_TAG.
Read more >Failed to build docker image with the Dockerfile #5499 - GitHub
Tried to build a docker image with the command : docker image build -t aws-cdk:1.0 . But failed with the following error.
Read more >Unable to "Build Docker image" from Docker task | Bamboo - Jira
The new image is built and added to the image repository. Actual Results. When running Bamboo's Docker task, the following error gets thrown....
Read more >Docker: “build” Requires 1 Argument Error - Baeldung
The most common reason for “Docker build Requires 1 Argument” error is when we try to build the image without providing sufficient arguments....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Reverted the Dockerfile change for now and fixed the PR workflow. Will open a new PR for Dockerfile changes and we can discuss there.
Figured it out, my mistake. Used the
pull_request_target
event to trigger PR workflows, but that runs in the context of the master branch, not the PR branch. So the Docker image appeared to build fine in the PR that you opened, but that’s only because it was building code from master not your PR.