Skip to content

Commit

Permalink
Updates Dockerfile to fix file permissions during build
Browse files Browse the repository at this point in the history
  • Loading branch information
raugfer committed Sep 6, 2024
1 parent 4cdda8f commit a12e14b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/npm/garaga_rs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ ENV PATH="$HOME/n/bin/:$PATH"

WORKDIR /garaga/tools/npm/garaga_rs

CMD npm ci && npm run build && npm pack
CMD npm ci && npm run build && npm pack && ./fix-chown.sh
5 changes: 5 additions & 0 deletions tools/npm/garaga_rs/fix-chown.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
FOLDER="$(dirname "$0")"
UID=$(stat -c "%u" "$FOLDER")
GID=$(stat -c "%g" "$FOLDER")
chown -R "$UID:$GID" "$FOLDER"

0 comments on commit a12e14b

Please sign in to comment.