Skip to content

Docker build fails with missing node-pre-gyp #73

@taladar

Description

@taladar

Describe the Bug

Trying to naively build the Dockerfile in the repository (at tag 10.1.3, the latest as of right now) results in an error while building [email protected] that it is missing the node-pre-gyp binary.

To Reproduce

docker build -t directus9:10.1.3 .

[...]
Progress: resolved 2396, reused 0, downloaded 2382, added 2394
.../fontawesome-common-types postinstall$ node attribution.js
.../fontawesome-common-types postinstall$ node attribution.js
.../fontawesome-common-types postinstall: Font Awesome Free 0.2.36 by @fontawesome - https://fontawesome.com
.../fontawesome-common-types postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../fontawesome-common-types postinstall: Done
.../fontawesome-common-types postinstall: Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com
.../fontawesome-common-types postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../fontawesome-common-types postinstall: Copyright 2023 Fonticons, Inc.
.../fontawesome-common-types postinstall: Done
Progress: resolved 2396, reused 0, downloaded 2383, added 2396, done
.../node_modules/vue-demi postinstall$ node ./scripts/postinstall.js
.../node_modules/vue-demi postinstall: Done
.../@fortawesome/fontawesome-svg-core postinstall$ node attribution.js
.../@fortawesome/fontawesome-svg-core postinstall$ node attribution.js
.../@fortawesome/free-brands-svg-icons postinstall$ node attribution.js
.../@fortawesome/free-regular-svg-icons postinstall$ node attribution.js
.../@fortawesome/fontawesome-svg-core postinstall: Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com
.../@fortawesome/fontawesome-svg-core postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/fontawesome-svg-core postinstall: Copyright 2023 Fonticons, Inc.
.../@fortawesome/free-solid-svg-icons postinstall$ node attribution.js
.../@fortawesome/fontawesome-svg-core postinstall: Done
.../@fortawesome/fontawesome-svg-core postinstall: Font Awesome Free 1.2.36 by @fontawesome - https://fontawesome.com
.../@fortawesome/fontawesome-svg-core postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/fontawesome-svg-core postinstall: Done
.../@fortawesome/free-brands-svg-icons postinstall: Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com
.../@fortawesome/free-brands-svg-icons postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/free-brands-svg-icons postinstall: Copyright 2023 Fonticons, Inc.
.../@fortawesome/free-brands-svg-icons postinstall: Done
.../@fortawesome/free-solid-svg-icons postinstall: Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
.../@fortawesome/free-solid-svg-icons postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/free-regular-svg-icons postinstall: Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
.../@fortawesome/free-regular-svg-icons postinstall: License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
.../@fortawesome/free-solid-svg-icons postinstall: Done
.../@fortawesome/free-regular-svg-icons postinstall: Done
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall$ node install.js
.../[email protected]/node_modules/esbuild postinstall: Done
.../[email protected]/node_modules/esbuild postinstall: Done
.../[email protected]/node_modules/esbuild postinstall: Done
.../[email protected]/node_modules/sharp install$ node install/check
.../[email protected]/node_modules/sharp install: Done
.../[email protected]/node_modules/argon2 install$ node-pre-gyp install --fallback-to-build
.../[email protected]/node_modules/argon2 install: sh: node-pre-gyp: not found

Directus Version

v10.1.3

Hosting Strategy

Self-Hosted (Docker Image)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions