荣数api转发
This commit is contained in:
parent
3699762be3
commit
0e8329333f
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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}"
|
||||
echo docker run -it -p "${API_PORT}:${API_PORT}" --name "CONTAINER" "${IMAGE}"
|
Loading…
Reference in New Issue