Open
Description
Describe the bug
The image fails to build under Docker.
To Reproduce
Steps to reproduce the behavior:
After cloning the repo,
cd dockerfiles/cloud
docker build -t test .
Expected behavior
Code to build successfully.
Output
------
> [frontend 6/9] RUN yarn install:
#37 0.748 yarn install v1.22.15
#37 0.879 [1/5] Validating package.json...
#37 0.884 [2/5] Resolving packages...
#37 1.775 [3/5] Fetching packages...
#37 82.18 info [email protected]: The platform "linux" is incompatible with this module.
#37 82.19 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#37 82.20 info [email protected]: The platform "linux" is incompatible with this module.
#37 82.20 info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
#37 82.23 [4/5] Linking dependencies...
#37 82.24 warning "@quasar/quasar-app-extension-qmarkdown > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
#37 82.25 warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
#37 113.4 [5/5] Building fresh packages...
#37 118.2 error /client/node_modules/node-sass: Command failed.
#37 118.2 Exit code: 1
#37 118.2 Command: node scripts/build.js
#37 118.2 Arguments:
#37 118.2 Directory: /client/node_modules/node-sass
#37 118.2 Output:
#37 118.2 Building: /usr/local/bin/node /client/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
#37 118.2 gyp info it worked if it ends with ok
#37 118.2 gyp verb cli [
#37 118.2 gyp verb cli '/usr/local/bin/node',
#37 118.2 gyp verb cli '/client/node_modules/node-gyp/bin/node-gyp.js',
#37 118.2 gyp verb cli 'rebuild',
#37 118.2 gyp verb cli '--verbose',
#37 118.2 gyp verb cli '--libsass_ext=',
#37 118.2 gyp verb cli '--libsass_cflags=',
#37 118.2 gyp verb cli '--libsass_ldflags=',
#37 118.2 gyp verb cli '--libsass_library='
#37 118.2 gyp verb cli ]
#37 118.2 gyp info using [email protected]
#37 118.2 gyp info using [email protected] | linux | x64
#37 118.2 gyp verb command rebuild []
#37 118.2 gyp verb command clean []
#37 118.2 gyp verb clean removing "build" directory
#37 118.2 gyp verb command configure []
#37 118.2 gyp verb check python checking for Python executable "python2" in the PATH
#37 118.2 gyp verb `which` failed Error: not found: python2
#37 118.2 gyp verb `which` failed at getNotFoundError (/client/node_modules/which/which.js:13:12)
#37 118.2 gyp verb `which` failed at F (/client/node_modules/which/which.js:68:19)
#37 118.2 gyp verb `which` failed at E (/client/node_modules/which/which.js:80:29)
#37 118.2 gyp verb `which` failed at /client/node_modules/which/which.js:89:16
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/index.js:42:5
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/mode.js:8:5
#37 118.2 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:191:21)
#37 118.2 gyp verb `which` failed python2 Error: not found: python2
#37 118.2 gyp verb `which` failed at getNotFoundError (/client/node_modules/which/which.js:13:12)
#37 118.2 gyp verb `which` failed at F (/client/node_modules/which/which.js:68:19)
#37 118.2 gyp verb `which` failed at E (/client/node_modules/which/which.js:80:29)
#37 118.2 gyp verb `which` failed at /client/node_modules/which/which.js:89:16
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/index.js:42:5
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/mode.js:8:5
#37 118.2 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:191:21) {
#37 118.2 gyp verb `which` failed code: 'ENOENT'
#37 118.2 gyp verb `which` failed }
#37 118.2 gyp verb check python checking for Python executable "python" in the PATH
#37 118.2 gyp verb `which` failed Error: not found: python
#37 118.2 gyp verb `which` failed at getNotFoundError (/client/node_modules/which/which.js:13:12)
#37 118.2 gyp verb `which` failed at F (/client/node_modules/which/which.js:68:19)
#37 118.2 gyp verb `which` failed at E (/client/node_modules/which/which.js:80:29)
#37 118.2 gyp verb `which` failed at /client/node_modules/which/which.js:89:16
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/index.js:42:5
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/mode.js:8:5
#37 118.2 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:191:21)
#37 118.2 gyp verb `which` failed python Error: not found: python
#37 118.2 gyp verb `which` failed at getNotFoundError (/client/node_modules/which/which.js:13:12)
#37 118.2 gyp verb `which` failed at F (/client/node_modules/which/which.js:68:19)
#37 118.2 gyp verb `which` failed at E (/client/node_modules/which/which.js:80:29)
#37 118.2 gyp verb `which` failed at /client/node_modules/which/which.js:89:16
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/index.js:42:5
#37 118.2 gyp verb `which` failed at /client/node_modules/isexe/mode.js:8:5
#37 118.2 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:191:21) {
#37 118.2 gyp verb `which` failed code: 'ENOENT'
#37 118.2 gyp verb `which` failed }
#37 118.2 gyp ERR! configure error
#37 118.2 gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
#37 118.2 gyp ERR! stack at PythonFinder.failNoPython (/client/node_modules/node-gyp/lib/configure.js:484:19)
#37 118.2 gyp ERR! stack at PythonFinder.<anonymous> (/client/node_modules/node-gyp/lib/configure.js:406:16)
#37 118.2 gyp ERR! stack at F (/client/node_modules/which/which.js:68:16)
#37 118.2 gyp ERR! stack at E (/client/node_modules/which/which.js:80:29)
#37 118.2 gyp ERR! stack at /client/node_modules/which/which.js:89:16
#37 118.2 gyp ERR! stack at /client/node_modules/isexe/index.js:42:5
#37 118.2 gyp ERR! stack at /client/node_modules/isexe/mode.js:8:5
#37 118.2 gyp ERR! stack at FSReqCallback.oncomplete (fs.js:191:21)
#37 118.2 gyp ERR! System Linux 5.10.47-linuxkit
#37 118.2 gyp ERR! command "/usr/local/bin/node" "/client/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
#37 118.2 gyp ERR! cwd /client/node_modules/node-sass
#37 118.2 gyp ERR! node -v v14.18.1
#37 118.2 gyp ERR! node-gyp -v v3.8.0
#37 118.2 gyp ERR! not ok
#37 118.2 Build failed with error code: 1
#37 118.2 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
------
executor failed running [/bin/sh -c yarn install]: exit code: 1
Desktop:
- OS: MacOS 11.6
Docker Version:
Client:
Cloud integration: 1.0.17
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:55:20 2021
OS/Arch: darwin/arm64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:53:34 2021
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Metadata
Metadata
Assignees
Labels
No labels