Docs: Use docker build commands as params (#2642)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -24,6 +24,7 @@
|
||||
compile_commands.json
|
||||
/build
|
||||
**/.idea
|
||||
**/.clwb
|
||||
/platform/android/MapLibreAndroidTestApp/local.properties
|
||||
/new_offline.db
|
||||
*.gpg
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user