3 Star 12 Fork 0

hanbingzi/anyclient-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 925 Bytes
一键复制 编辑 原始数据 按行查看 历史
hanbingzi 提交于 2024-11-23 18:22 . 修改依赖
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" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hanbingzi/anyclient-web.git
git@gitee.com:hanbingzi/anyclient-web.git
hanbingzi
anyclient-web
anyclient-web
main

搜索帮助