From 0e8329333fb8464707ac6010ed3454cd706cd33c Mon Sep 17 00:00:00 2001 From: Rzy <465386466@qq.com> Date: Wed, 19 Jun 2024 10:55:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=A3=E6=95=B0api=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- sh/create.sh | 4 ++-- sh/startup.sh | 0 sh/supervisord.conf | 0 sh/supervisord_include/start.conf | 0 5 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 sh/create.sh mode change 100644 => 100755 sh/startup.sh mode change 100644 => 100755 sh/supervisord.conf mode change 100644 => 100755 sh/supervisord_include/start.conf diff --git a/Dockerfile b/Dockerfile index 819ea8e..dbdeb85 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,10 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN apk update --no-cache && apk add --no-cache tzdata -WORKDIR /msgc +WORKDIR /src COPY ../.. . -RUN go mod download +RUN go mod tidy RUN go build -ldflags="-s -w" -o /src/cmd/api/transfer cmd/api/transfer.go diff --git a/sh/create.sh b/sh/create.sh old mode 100644 new mode 100755 index 7cf33e4..0f61af5 --- a/sh/create.sh +++ b/sh/create.sh @@ -6,9 +6,9 @@ API_PORT="10101" V_REFLECT="" -docker build -t "${IMAGE}" . --no-cache + docker stop "${CONTAINER}" docker rm "${CONTAINER}" -docker run -it -p -p "${API_PORT}:${API_PORT}" --name "CONTAINER" "${IMAGE}" \ No newline at end of file +echo docker run -it -p "${API_PORT}:${API_PORT}" --name "CONTAINER" "${IMAGE}" \ No newline at end of file diff --git a/sh/startup.sh b/sh/startup.sh old mode 100644 new mode 100755 diff --git a/sh/supervisord.conf b/sh/supervisord.conf old mode 100644 new mode 100755 diff --git a/sh/supervisord_include/start.conf b/sh/supervisord_include/start.conf old mode 100644 new mode 100755