Skip to content

Commit

Permalink
Refactor Dockerfile to install serve globally and update npm dependen…
Browse files Browse the repository at this point in the history
…cies
  • Loading branch information
cbluebird committed Dec 19, 2024
1 parent 012bbbe commit 01c23da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Framework/react/18.2.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ chmod -R +x /home/devbox/project/entrypoint.sh

USER devbox
RUN cd /home/devbox/project && \
npm install -g serve && \
npm install && \
npm run build

Expand Down
2 changes: 1 addition & 1 deletion Framework/react/18.2.0/project/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
cd /home/devbox/project
npm run start
npm install -g serve

0 comments on commit 01c23da

Please sign in to comment.