Skip to content

Commit cdfefb1

Browse files
committed
Add workaround for npm/uid-number#3
npm config set unsafe-perm true is called otherwise we get Error: could not get uid/gid [ 'nobody', 0 ] at .../uid-number/uid-number.js:37:16 ... error.
1 parent e72abf2 commit cdfefb1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

events/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ COPY scripts/ /scripts/
1010
# Getting from branch master, they don't provide tags, or stable branch
1111
# https://github.com/taigaio/taiga-events/issues/8
1212
ADD https://github.com/taigaio/taiga-events/archive/${TAIGA_VERSION}.tar.gz /taiga_events/
13+
14+
# See https://github.com/npm/uid-number/issues/3 for why the 'set unsafe-perm'
1315
RUN tar -xzf ${TAIGA_VERSION}.tar.gz -C ./ taiga-events-master/ --strip-components=1 \
1416
&& rm ${TAIGA_VERSION}.tar.gz \
17+
&& npm config set unsafe-perm true \
1518
&& npm i npm@latest -g \
1619
&& npm install --production && npm install -g coffee-script \
1720
&& addgroup -S taiga && adduser -S -G taiga taiga \

0 commit comments

Comments
 (0)