mirror of
https://github.com/zhaojh329/rttys.git
synced 2026-02-27 09:53:21 +08:00
To solve a major problem: when there are many devices connected, the broker will blocked in processing messages. By the way, I've rewritten and reorganized the entire code architecture, improved performance. Some new features has been added: * support device grouping. * support show device's IP address. Change-Id: I250e18091be7fd42028c82767b6edef50b3f6d8f Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
18 lines
471 B
Docker
18 lines
471 B
Docker
FROM node:20 AS ui
|
|
WORKDIR /rttys-ui
|
|
COPY ui .
|
|
RUN npm install && npm run build
|
|
|
|
FROM golang:latest AS rttys
|
|
WORKDIR /rttys-build
|
|
COPY . .
|
|
COPY --from=ui /rttys-ui/dist ui/dist
|
|
RUN CGO_ENABLED=0 \
|
|
GitCommit=$(git log --pretty=format:"%h" -1) \
|
|
BuildTime=$(date +%FT%T%z) \
|
|
go build -ldflags="-s -w -X main.gitCommit=$GitCommit -X main.buildTime=$BuildTime"
|
|
|
|
FROM alpine:latest
|
|
COPY --from=rttys /rttys-build/rttys /usr/bin/rttys
|
|
ENTRYPOINT ["/usr/bin/rttys"]
|