Skip to content

Commit 29456c0

Browse files
committed
Refactor Dockerfile to install serve globally and update npm dependencies
1 parent 4f957a3 commit 29456c0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Framework/angular/v18/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM ghcr.io/labring-actions/devbox/node.js-20:219d11
22

33
USER root
44
RUN cd /home/devbox/project && \
5-
rm -rf ./*
5+
rm -rf ./* && \
6+
mkdir -p /usr/lib/node_modules && \
7+
chown -R devbox:devbox /usr/lib/node_modules
68

79
COPY /Framework/angular/v18/project /home/devbox/project
810
RUN chown -R devbox:devbox /home/devbox/project && \

Framework/react/18.2.0/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
FROM ghcr.io/labring-actions/devbox/node.js-22:219d11
22
USER root
33
RUN cd /home/devbox/project && \
4-
rm -rf ./*
4+
rm -rf ./* && \
5+
rm -rf ./* && \
6+
mkdir -p /usr/lib/node_modules && \
7+
chown -R devbox:devbox /usr/lib/node_modules
58

69
COPY /Framework/react/18.2.0/project /home/devbox/project
710
RUN chown -R devbox:devbox /home/devbox/project && \

0 commit comments

Comments
 (0)