Skip to content

Commit

Permalink
Ensure docker-built files are owned by the user instead of root
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-lisowski committed Jul 19, 2024
1 parent 90792b7 commit 0f0255e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -o pipefail; # Don't hide errors within pipes.
set -o errexit; # Abort on non-zero exit status.

docker build --progress=plain . -t tomasz-lisowski/swsim:1.0.0 2>&1 | tee docker.log;
docker run -v .:/opt/swsim --tty --interactive --rm tomasz-lisowski/swsim:1.0.0;
docker run --user $(id -u):$(id -g) -v .:/opt/swsim --tty --interactive --rm tomasz-lisowski/swsim:1.0.0;
2 changes: 1 addition & 1 deletion lib/swicc
Submodule swicc updated 1 files
+1 −1 docker.sh

0 comments on commit 0f0255e

Please sign in to comment.