Skip to content

Commit cbdde9b

Browse files
committed
Refactor Dockerfile to install serve globally and update npm dependencies
1 parent f891d00 commit cbdde9b

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

Framework/angular/v18/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ chmod -R +x /home/devbox/project/entrypoint.sh
1212
USER devbox
1313
RUN cd /home/devbox/project && \
1414
sudo chmod -R 777 /usr/lib/node_modules && \
15-
npm install -g serve && \
15+
sudo npm install -g serve && \
1616
npm run build
1717

1818
RUN mkdir -p /home/devbox/.devbox

config.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,7 @@
2525
},
2626
{
2727
"name": "Angular",
28-
"version": [
29-
{
30-
"name": "v18",
31-
"image": "ghcr.io/labring-actions/devbox/angular-v18:4fa844",
32-
"config": "{\"appPorts\":[{\"name\":\"devbox-app-port\",\"port\":8080,\"protocol\":\"TCP\"}],\"ports\":[{\"containerPort\":22,\"name\":\"devbox-ssh-port\",\"protocol\":\"TCP\"}],\"releaseArgs\":[\"/home/devbox/project/entrypoint.sh\"],\"releaseCommand\":[\"/bin/bash\",\"-c\"],\"user\":\"devbox\",\"workingDir\":\"/home/devbox/project\"}",
33-
"state": "deprecated"
34-
},
35-
{
36-
"name": "v18",
37-
"image": "ghcr.io/labring-actions/devbox/angular-v18:00a840",
38-
"config": "{\"appPorts\":[{\"name\":\"devbox-app-port\",\"port\":8080,\"protocol\":\"TCP\"}],\"ports\":[{\"containerPort\":22,\"name\":\"devbox-ssh-port\",\"protocol\":\"TCP\"}],\"releaseArgs\":[\"/home/devbox/project/entrypoint.sh\"],\"releaseCommand\":[\"/bin/bash\",\"-c\"],\"user\":\"devbox\",\"workingDir\":\"/home/devbox/project\"}",
39-
"state": "deprecated"
40-
},
41-
{
42-
"name": "v18",
43-
"image": "ghcr.io/labring-actions/devbox/angular-v18:ab6b10",
44-
"config": "{\"appPorts\":[{\"name\":\"devbox-app-port\",\"port\":8080,\"protocol\":\"TCP\"}],\"ports\":[{\"containerPort\":22,\"name\":\"devbox-ssh-port\",\"protocol\":\"TCP\"}],\"releaseArgs\":[\"/home/devbox/project/entrypoint.sh\"],\"releaseCommand\":[\"/bin/bash\",\"-c\"],\"user\":\"devbox\",\"workingDir\":\"/home/devbox/project\"}",
45-
"state": "active"
46-
}
47-
]
28+
"version": []
4829
},
4930
{
5031
"name": "Next.js",

0 commit comments

Comments
 (0)