From 386c3bbcf57c84092ade62c759dec57eb53a6198 Mon Sep 17 00:00:00 2001 From: cbluebird Date: Wed, 27 Nov 2024 10:59:33 +0800 Subject: [PATCH] Refactor Dockerfile and generate_json.sh scripts --- Framework/gin/v1.10.0/Dockerfile | 2 +- script/generate_json.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/gin/v1.10.0/Dockerfile b/Framework/gin/v1.10.0/Dockerfile index 791e7308..129e6398 100644 --- a/Framework/gin/v1.10.0/Dockerfile +++ b/Framework/gin/v1.10.0/Dockerfile @@ -13,6 +13,6 @@ USER devbox RUN cd /home/devbox/project && \ go mod tidy && \ go build -o main main.go - + USER root RUN mkdir -p /home/devbox/.devbox \ No newline at end of file diff --git a/script/generate_json.sh b/script/generate_json.sh index 1801a810..47cbba7b 100644 --- a/script/generate_json.sh +++ b/script/generate_json.sh @@ -46,5 +46,5 @@ for i in "${!DIFF_OUTPUT_ARRAY[@]}"; do CN_IMAGE_NAME="${ADDR[1]}-$PARENT_DIR:$TAG" fi - ./runtimectl gen --kind=${ADDR[0]} --name=${ADDR[1]} --version=$PARENT_DIR --image=ghcr.io/$DOCKER_USERNAME/devbox/$EN_IMAGE_NAME --port=${PORT_MAP[${ADDR[1]}]} --output=$en_output_file + ./runtimectl gen --kind=${ADDR[0]} --name=${ADDR[1]} --version=$PARENT_DIR --image=ghcr.io/$DOCKER_USERNAME/devbox/$EN_IMAGE_NAME done