Docs: Use docker build commands as params (#2642)

This commit is contained in:
Yuri Astrakhan
2024-07-22 06:50:08 -04:00
committed by GitHub
parent 529ed981ab
commit fb0e7c1fd5
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@@ -24,6 +24,7 @@
compile_commands.json
/build
**/.idea
**/.clwb
/platform/android/MapLibreAndroidTestApp/local.properties
/new_offline.db
*.gpg

View File

@@ -34,6 +34,9 @@ docker build -t maplibre-native-image -f platform/linux/Dockerfile .
# Run docker image as the current user.
# This ensures that the files created in the container are owned by the current user.
docker run --rm -it -v "$PWD:/code/" -u $(id -u):$(id -g) maplibre-native-image ___any_build_command___
# You can also execute build commands from inside the docker container by starting it without parameters:
docker run --rm -it -v "$PWD:/code/" -u $(id -u):$(id -g) maplibre-native-image
```