荣数api转发

This commit is contained in:
Rzy 2024-06-19 10:55:54 +08:00
parent 3699762be3
commit 0e8329333f
5 changed files with 4 additions and 4 deletions

View File

@ -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 RUN apk update --no-cache && apk add --no-cache tzdata
WORKDIR /msgc WORKDIR /src
COPY ../.. . COPY ../.. .
RUN go mod download RUN go mod tidy
RUN go build -ldflags="-s -w" -o /src/cmd/api/transfer cmd/api/transfer.go RUN go build -ldflags="-s -w" -o /src/cmd/api/transfer cmd/api/transfer.go

4
sh/create.sh Normal file → Executable file
View File

@ -6,9 +6,9 @@ API_PORT="10101"
V_REFLECT="" V_REFLECT=""
docker build -t "${IMAGE}" . --no-cache
docker stop "${CONTAINER}" docker stop "${CONTAINER}"
docker rm "${CONTAINER}" docker rm "${CONTAINER}"
docker run -it -p -p "${API_PORT}:${API_PORT}" --name "CONTAINER" "${IMAGE}" echo docker run -it -p "${API_PORT}:${API_PORT}" --name "CONTAINER" "${IMAGE}"

0
sh/startup.sh Normal file → Executable file
View File

0
sh/supervisord.conf Normal file → Executable file
View File

0
sh/supervisord_include/start.conf Normal file → Executable file
View File