You've already forked DataMate
* feature: 版本统一 * feature: 定时同步时默认值展示异常,增加提示 * feature: 修复数据归集搜索 * feature: 优化标注模板查询 * feature: 屏蔽webhook功能
20 lines
380 B
Docker
20 lines
380 B
Docker
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend ./
|
|
|
|
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi && \
|
|
npm run build
|
|
|
|
FROM nginx:1.29 AS runner
|
|
|
|
COPY --from=builder /app/dist /opt/frontend
|
|
|
|
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
|
&& rm -f /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|