Skip to content

Commit 6135b91

Browse files
committed
fix permission issue + add upgrade to latest npm
1 parent 4ae9870 commit 6135b91

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

16/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ COPY entrypoint /entrypoint
2626

2727
RUN chmod +x /entrypoint
2828

29-
RUN mkdir -p /usr/local/lib/node_modules && chown -R kool:kool /usr/local/lib/node_modules
29+
RUN mkdir -p /usr/local/lib/node_modules && chmod -R 777 /usr/local/lib/node_modules
30+
31+
RUN npm i --location=global npm@latest
3032

3133
ENTRYPOINT [ "/entrypoint" ]

18/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ COPY entrypoint /entrypoint
2626

2727
RUN chmod +x /entrypoint
2828

29-
RUN mkdir -p /usr/local/lib/node_modules && chown -R kool:kool /usr/local/lib/node_modules
29+
RUN mkdir -p /usr/local/lib/node_modules && chmod -R 777 /usr/local/lib/node_modules
30+
31+
RUN npm i --location=global npm@latest
3032

3133
ENTRYPOINT [ "/entrypoint" ]

template/Dockerfile.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
RUN chmod +x /entrypoint
2828

29-
RUN mkdir -p /usr/local/lib/node_modules && chown -R kool:kool /usr/local/lib/node_modules
29+
RUN mkdir -p /usr/local/lib/node_modules && chmod -R 777 /usr/local/lib/node_modules
30+
31+
RUN npm i --location=global npm@latest
3032

3133
ENTRYPOINT [ "/entrypoint" ]

0 commit comments

Comments
 (0)