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' \
124
124
docker compose -f " docker/docker-compose.yml" up -d --build
125
125
```
126
126
127
- #### Web API Run in docker [ http://localhost:9001 ] ( http://localhost:9001 )
127
+ #### Web API Run in docker [ http://localhost:9002 ] ( http://localhost:9002 )
128
128
129
129
```
130
- Token Url: http://localhost:9001 /api/v1/users/login-by-username
130
+ Token Url: http://localhost:9002 /api/v1/users/login-by-username
131
131
Username: admin
132
132
Password: 12345678
133
133
```
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
2
2
3
3
WORKDIR /app
4
4
5
5
COPY go.* ./
6
+ ENV CGO_ENABLED=0
7
+ RUN go env -w GO111MODULE=on
8
+ RUN go env -w GOPROXY=https://goproxy.cn,direct
6
9
RUN go mod download
7
10
8
11
COPY . ./
@@ -17,8 +20,7 @@ COPY --from=builder /app/server /app/server
17
20
COPY --from=builder /app/config/config-docker.yml /app/config/config-docker.yml
18
21
COPY --from=builder /app/docs /app/docs
19
22
20
- ENV APP_ENV docker
21
- ENV PORT ${Port}
23
+ ENV APP_ENV= docker
24
+ ENV PORT= ${Port}
22
25
23
26
CMD [ "/app/server" ]
24
-
You can’t perform that action at this time.
0 commit comments