chore: ws git cache
CI / changes (push) Successful in 1m43s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / analysis (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / record (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / user (push) Successful in 0s
CI / task (push) Successful in 0s
CI / wecom (push) Successful in 1s
CI / water (push) Successful in 0s
CI / ws (push) Successful in 17s
CI / changes (push) Successful in 1m43s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / analysis (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / record (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / user (push) Successful in 0s
CI / task (push) Successful in 0s
CI / wecom (push) Successful in 1s
CI / water (push) Successful in 0s
CI / ws (push) Successful in 17s
This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
FROM golang:1.26.5-alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
ENV GOPROXY=https://goproxy.cn,direct \
|
||||||
|
CGO_ENABLED=0 \
|
||||||
|
GOOS=linux \
|
||||||
|
GOARCH=amd64
|
||||||
|
|
||||||
|
COPY pkg ./pkg
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
go mod download
|
||||||
|
|
||||||
|
COPY rpc/ ./rpc
|
||||||
|
COPY services/ws/ ./services/ws/
|
||||||
|
|
||||||
|
WORKDIR /src/services/ws
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
--mount=type=cache,target=/root/.cache/go-build \
|
||||||
|
go build -ldflags="-s -w" -o /out/main ./
|
||||||
|
|
||||||
|
FROM alpine:3.22
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ENV TZ=Asia/Shanghai
|
||||||
|
|
||||||
|
RUN apk add --no-cache tzdata \
|
||||||
|
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||||
|
&& echo "Asia/Shanghai" > /etc/timezone
|
||||||
|
|
||||||
|
COPY --from=builder /out/main .
|
||||||
|
|
||||||
|
CMD ["./main", "-f", "etc/ws.yaml"]
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
Nacos:
|
|
||||||
Hosts:
|
|
||||||
- rnacos:8848
|
|
||||||
NamespaceId: test
|
|
||||||
Group: LONE_SERVICES
|
|
||||||
RegisterIP: ws
|
|
||||||
ConfigID: ws
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
[base]
|
|
||||||
name = "ws-service"
|
|
||||||
listenOn = "0.0.0.0:10002"
|
|
||||||
mode = "dev"
|
|
||||||
|
|
||||||
[log]
|
|
||||||
path = "logs"
|
|
||||||
serviceName = "ws-service"
|
|
||||||
mode = "file"
|
|
||||||
encoding = "plain"
|
|
||||||
level = "info"
|
|
||||||
keepDays = 7
|
|
||||||
maxSize = 50
|
|
||||||
maxBackups = 5
|
|
||||||
compress = false
|
|
||||||
|
|
||||||
[redis]
|
|
||||||
host = '39.106.171.204'
|
|
||||||
password = 'lLMLcuPpzSj'
|
|
||||||
port = 6379
|
|
||||||
db = 1
|
|
||||||
|
|
||||||
[log-redis]
|
|
||||||
host = '39.106.171.204'
|
|
||||||
password = 'lLMLcuPpzSj'
|
|
||||||
port = 6379
|
|
||||||
db = 3
|
|
||||||
Reference in New Issue
Block a user