Files
qiufeng b588c4bbb1 feat: 菜单增加分类
feat: 字典增加icon
feat: 样式优化
feat: 启动端口调整
2024-11-15 23:13:53 +08:00

17 lines
500 B
Docker

# build stage
FROM node as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm config set registry https://registry.npmmirror.com
RUN npm install -g pnpm
RUN pnpm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/mfish-nocode-view /usr/share/nginx/html/mfish-nocode-view
COPY --from=build-stage /app/config/mfish-nocode-view.conf /etc/nginx/conf.d/mfish-nocode-view.conf
EXPOSE 5186
CMD ["nginx", "-g", "daemon off;"]