Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ curl -X 'POST' \
docker compose -f "docker/docker-compose.yml" up -d --build
```

#### Web API Run in docker [http://localhost:9001](http://localhost:9001)
#### Web API Run in docker [http://localhost:9002](http://localhost:9002)

```
Token Url: http://localhost:9001/api/v1/users/login-by-username
Token Url: http://localhost:9002/api/v1/users/login-by-username
Username: admin
Password: 12345678
```
Expand Down
10 changes: 6 additions & 4 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM golang:1.19-buster AS builder
FROM golang:1.22-bookworm AS builder

WORKDIR /app

COPY go.* ./
ENV CGO_ENABLED=0
RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go mod download

COPY . ./
Expand All @@ -17,8 +20,7 @@ COPY --from=builder /app/server /app/server
COPY --from=builder /app/config/config-docker.yml /app/config/config-docker.yml
COPY --from=builder /app/docs /app/docs

ENV APP_ENV docker
ENV PORT ${Port}
ENV APP_ENV=docker
ENV PORT=${Port}

CMD [ "/app/server" ]