Set uid in sample docker command
authorMagnus Hagander <magnus@hagander.net>
Sun, 14 Sep 2025 12:18:21 +0000 (14:18 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sun, 14 Sep 2025 12:18:21 +0000 (14:18 +0200)
This avoids the default of creating files owned by root

tools/deploystatic/README.docker

index 460a5487431adf32d59b5cc8f0d1c7148d830ef6..754165189eb274ea4b80fbc9d960100df3984aed 100644 (file)
@@ -16,7 +16,7 @@ Deploying a directory
 ---------------------
 To use this container to deploy to a static directory, use:
 
-docker run -it --rm -v `pwd`:/source -v /tmp/statictest:/target deploystatic
+docker run -it --rm -v `pwd`:/source -v /tmp/statictest:/target -u `id -u` deploystatic
 
 (In this case taking the templates in the current directory and deploying the
 result to /tmp/statictest - adjust for your own directories)