feat: implement AI schedule app with multi-device sync
- Qt 6 desktop client with day/month/year views, AI scheduling, and TOML settings\n- Go sync server with SQLite change stream, WebSocket notifications, and Docker deployment\n- Client outbox/LWW sync, offline retry, and dual-client integration tests\n- Linux fcitx5 setup, validation reports, and Windows MinGW preset
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
FROM golang:1.23-alpine AS build
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/schedule-sync ./cmd/server
|
||||
|
||||
FROM alpine:3.20
|
||||
RUN apk add --no-cache ca-certificates tzdata \
|
||||
&& adduser -D -u 10001 app \
|
||||
&& mkdir -p /data \
|
||||
&& chown -R app:app /data
|
||||
USER app
|
||||
WORKDIR /data
|
||||
COPY --from=build /out/schedule-sync /usr/local/bin/schedule-sync
|
||||
ENV SYNC_LISTEN_ADDR=:8787 \
|
||||
SYNC_DB_PATH=/data/sync.db
|
||||
EXPOSE 8787
|
||||
VOLUME ["/data"]
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
|
||||
CMD wget -qO- http://127.0.0.1:8787/healthz >/dev/null || exit 1
|
||||
ENTRYPOINT ["schedule-sync"]
|
||||
Reference in New Issue
Block a user