代码拉取完成,页面将自动刷新
FROM node:14 as builder
# 用户工作空间,用于打包到前端工作空间地址
ENV WORKSPACE_DIR workspace
ENV EXTENSION_DIR extensions
COPY . .
ENV ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/
RUN mkdir -p ${WORKSPACE_DIR} &&\
mkdir -p ${EXTENSION_DIR}
RUN yarn --ignore-scripts --network-timeout 1000000 && \
yarn run build && \
rm -rf ./node_modules
FROM node:14 as app
ENV WORKSPACE_DIR /workspace
ENV EXTENSION_DIR /root/.sumi/extensions
ENV EXT_MODE js
ENV NODE_ENV production
RUN mkdir -p ${WORKSPACE_DIR} &&\
mkdir -p ${EXTENSION_DIR}
WORKDIR /release
COPY ./configs/docker/productionDependencies.json package.json
RUN yarn --network-timeout 1000000
COPY --from=builder dist dist
COPY --from=builder dist-node dist-node
COPY --from=builder hosted hosted
COPY --from=builder extensions /root/.sumi/extensions
EXPOSE 8000
CMD [ "node", "./dist-node/server/index.js" ]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。