File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,10 @@ curl -X 'POST' \
124124docker compose -f " docker/docker-compose.yml" up -d --build
125125```
126126
127- #### Web API Run in docker [ http://localhost:9001 ] ( http://localhost:9001 )
127+ #### Web API Run in docker [ http://localhost:9002 ] ( http://localhost:9002 )
128128
129129```
130- Token Url: http://localhost:9001 /api/v1/users/login-by-username
130+ Token Url: http://localhost:9002 /api/v1/users/login-by-username
131131Username: admin
132132Password: 12345678
133133```
Original file line number Diff line number Diff line change 1- FROM golang:1.19-buster AS builder
1+ FROM golang:1.22-bookworm AS builder
22
33WORKDIR /app
44
55COPY go.* ./
6+ ENV CGO_ENABLED=0
7+ RUN go env -w GO111MODULE=on
8+ RUN go env -w GOPROXY=https://goproxy.cn,direct
69RUN go mod download
710
811COPY . ./
@@ -17,8 +20,7 @@ COPY --from=builder /app/server /app/server
1720COPY --from=builder /app/config/config-docker.yml /app/config/config-docker.yml
1821COPY --from=builder /app/docs /app/docs
1922
20- ENV APP_ENV docker
21- ENV PORT ${Port}
23+ ENV APP_ENV= docker
24+ ENV PORT= ${Port}
2225
2326CMD [ "/app/server" ]
24-
You can’t perform that action at this time.
0 commit comments