Skip to content

Commit

Permalink
chore: Update Dockerfile to fix formatting and add Chinese localizati…
Browse files Browse the repository at this point in the history
…on support
  • Loading branch information
cbluebird committed Sep 24, 2024
1 parent a592a96 commit 47fbe87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Language/node.js/18/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ RUN apt-get update && \
chown -R sealos:sealos /home/sealos/project && \
chmod -R u+rw /home/sealos/project && \
chmod -R +x /home/sealos/project/entrypoint.sh

RUN mkdir /root/.sealos
12 changes: 12 additions & 0 deletions Language/node.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"
31 changes: 0 additions & 31 deletions yaml/Language/java/openjdk17/openjdk17.yaml

This file was deleted.

0 comments on commit 47fbe87

Please sign in to comment.