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