mirror of
https://github.com/maplibre/martin.git
synced 2024-12-24 23:45:42 +03:00
14 lines
523 B
TOML
14 lines
523 B
TOML
|
[build]
|
||
|
pre-build = [
|
||
|
# install nodejs and npm to compile static web resources
|
||
|
# note that architecture could be the same as the container, not $CROSS_DEB_ARCH
|
||
|
# Need to use a fairly old Node.js version to support the old underlying docker image
|
||
|
"curl -fsSL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh",
|
||
|
"bash nodesource_setup.sh",
|
||
|
"apt-get install -y nodejs",
|
||
|
"node -v",
|
||
|
# Using old NPM, so must ensure correct access
|
||
|
"mkdir -p /.npm",
|
||
|
"chown -R 1001:127 /.npm",
|
||
|
]
|