Skip to content

Commit

Permalink
chore: Update Dockerfile for Node.js 20 in Vue, React, Next.js, and E…
Browse files Browse the repository at this point in the history
…xpress.js frameworks
  • Loading branch information
cbluebird committed Sep 28, 2024
1 parent ba78c55 commit 8b4e92e
Show file tree
Hide file tree
Showing 12 changed files with 7,123 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Framework/express.js/4.21.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/labring-actions/devbox/node.js-20:747938
FROM ghcr.io/labring-actions/devbox/node.js-20:5c2eec

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
2 changes: 1 addition & 1 deletion Framework/express.js/update_cn_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ sed -i '$i\
COPY /OS/debian-ssh/debian.sources /etc/apt/sources.list.d/debian.sources' "$TMP_DOCKERFILE"

sed -i '$i\
RUN npm config set registry http://mirrors.cloud.tencent.com/npm/' "$TMP_DOCKERFILE"
RUN npm config set registry https://registry.npmmirror.com' "$TMP_DOCKERFILE"
4 changes: 2 additions & 2 deletions Framework/next.js/14.2.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/labring-actions/devbox/node.js-20:747938
FROM ghcr.io/labring-actions/devbox/node.js-20:5c2eec

RUN cd /home/sealos/project && \
rm -rf ./*
Expand All @@ -11,7 +11,7 @@ chmod -R +x /home/sealos/project/entrypoint.sh
USER sealos
RUN cd /home/sealos/project && \
npm config set fetch-retry-maxtimeout 4000000 && \
pnpm install && \
npm install && \
pnpm run build

RUN mkdir /home/sealos/.sealos
2 changes: 1 addition & 1 deletion Framework/next.js/14.2.5/project/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
cd /home/sealos/project
pnpm run start
pnpm run dev
Loading

0 comments on commit 8b4e92e

Please sign in to comment.