Skip to content

Commit

Permalink
chore: Update Dockerfile to use latest version of node.js-20 image
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 24, 2024
1 parent c2db8a6 commit 7fe6d60
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 96 deletions.
2 changes: 1 addition & 1 deletion 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:409348
FROM ghcr.io/labring-actions/devbox/node.js-20:747938

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
12 changes: 12 additions & 0 deletions Framework/next.js/update_cn_dockerfile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

DOCKERFILE=$1
echo "DOCKERFILE: $DOCKERFILE"
TMP_DOCKERFILE="${DOCKERFILE}tmp"
cp "$DOCKERFILE" "$TMP_DOCKERFILE"

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"
2 changes: 1 addition & 1 deletion Framework/react/18.2.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:409348
FROM ghcr.io/labring-actions/devbox/node.js-20:747938

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
12 changes: 12 additions & 0 deletions Framework/react/update_cn_dockerfile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

DOCKERFILE=$1
echo "DOCKERFILE: $DOCKERFILE"
TMP_DOCKERFILE="${DOCKERFILE}tmp"
cp "$DOCKERFILE" "$TMP_DOCKERFILE"

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"
12 changes: 12 additions & 0 deletions Framework/vue/update_cn_dockerfile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

DOCKERFILE=$1
echo "DOCKERFILE: $DOCKERFILE"
TMP_DOCKERFILE="${DOCKERFILE}tmp"
cp "$DOCKERFILE" "$TMP_DOCKERFILE"

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"
2 changes: 1 addition & 1 deletion Framework/vue/v3.4.29/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/labring-actions/devbox/node.js-20:409348
FROM ghcr.io/labring-actions/devbox/node.js-20:747938

RUN cd /home/sealos/project && \
rm -rf ./*
Expand Down
31 changes: 0 additions & 31 deletions yaml/Framework/next.js/14.2.5/14.2.5.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions yaml/Framework/react/18.2.0/18.2.0.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions yaml/Framework/vue/v3.4.29/v3.4.29.yaml

This file was deleted.

0 comments on commit 7fe6d60

Please sign in to comment.