Skip to content

Commit fb41207

Browse files
ci: chown npm-related paths to owner of /workspace in app container (ietf-tools#3768)
1 parent 1d8746c commit fb41207

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docker/scripts/app-init.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ WORKSPACEDIR="/workspace"
44

55
service rsyslog start
66

7+
# fix permissions for npm-related paths
8+
WORKSPACE_UID_GID=$(stat --format="%u:%g" "$WORKSPACEDIR")
9+
chown -R "$WORKSPACE_UID_GID" "$WORKSPACEDIR/node_modules" "$WORKSPACEDIR/.parcel-cache"
10+
711
# Generate static assets
812

913
npm install --prefer-offline --no-audit

0 commit comments

Comments
 (0)