Files
曾志威 5e5f2aa7fe feat: enhance sync workflows and add WES configuration exports
Add the React console, strengthen synchronization and retry handling, and export WES MySQL and MongoDB configuration packages.
2026-10-14 11:39:04 +08:00

12 lines
344 B
Docker

FROM golang:1.26-alpine AS build
WORKDIR /src
COPY go.mod go.sum ./
COPY cmd ./cmd
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/syncdb ./cmd/syncdb
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata
COPY --from=build /out/syncdb /usr/local/bin/syncdb
ENV SYNCDB_DATA_DIR=/data
ENTRYPOINT ["/usr/local/bin/syncdb"]