mirror of
https://github.com/Smile-QWQ/SubTracker.git
synced 2026-06-09 07:22:52 +08:00
- add notifyOnDueDay and overdueReminderDays to shared settings schema and defaults - wire reminder settings through API settings service, notification scan logic, seed data, and tests - update settings page with 默认提前提醒天数 label, 到期当天提醒 switch, and 过期提醒 multi-select - show current app version under SubTracker branding and inject VITE_APP_VERSION during web builds - add GPLv3 LICENSE and update README with license and acknowledgements
25 lines
542 B
Docker
25 lines
542 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
ARG VITE_APP_VERSION=dev
|
|
ENV VITE_APP_VERSION=$VITE_APP_VERSION
|
|
|
|
COPY package*.json ./
|
|
COPY apps/api/package.json apps/api/package.json
|
|
COPY apps/web/package.json apps/web/package.json
|
|
COPY packages/shared/package.json packages/shared/package.json
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build -w packages/shared \
|
|
&& npm run build -w apps/web
|
|
|
|
FROM nginx:1.27-alpine
|
|
|
|
COPY docker/nginx.full.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=builder /app/apps/web/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|