Skip to content

Commit 31d835b

Browse files
committedFeb 22, 2024
Fix random failed to install npm package from git in docker
npm/cli#624
1 parent 1c4e0bc commit 31d835b

4 files changed

+4
-0
lines changed
 

‎Dockerfile.linux-builder

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION} \
1414
bc \
1515
&& apt-get clean \
1616
&& rm -rf /var/lib/apt/lists/*
17+
RUN chown root:root .
1718

1819
COPY . .
1920

‎Dockerfile.mac-builder

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION} \
1414
bc \
1515
&& apt-get clean \
1616
&& rm -rf /var/lib/apt/lists/*
17+
RUN chown root:root .
1718

1819
COPY . .
1920

‎Dockerfile.ui-builder

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ENV IS_DEV_ENV=${IS_DEV_ENV:-0}
88
COPY ./scripts/helpers/install-nodejs.sh ./scripts/helpers/install-nodejs.sh
99

1010
RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION}
11+
RUN chown root:root .
1112

1213
COPY . .
1314

‎Dockerfile.win-builder

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN ./scripts/helpers/install-nodejs.sh ${NODE_VERSION} \
1717
bc \
1818
&& apt-get clean \
1919
&& rm -rf /var/lib/apt/lists/*
20+
RUN chown root:root .
2021

2122
COPY . .
2223

0 commit comments

Comments
 (0)
Please sign in to comment.