task
CI / changes (push) Successful in 40s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 1s
CI / express (push) Successful in 0s
CI / product (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s

This commit is contained in:
2026-09-01 09:24:09 +08:00
parent 60bf02cddd
commit c32724b6b1
3 changed files with 39 additions and 7 deletions
+2
View File
@@ -0,0 +1,2 @@
run.toml
etc/task.yaml
+37
View File
@@ -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/task/ ./services/task/
WORKDIR /src/services/task
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/task.yaml"]
-7
View File
@@ -1,7 +0,0 @@
Nacos:
Hosts:
- host.docker.internal:8848
NamespaceId: test
Group: LONE_SERVICES
RegisterIP: task
ConfigID: develop-task