1 Star 0 Fork 7

luch/julycms.com-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 499 Bytes
一键复制 编辑 原始数据 按行查看 历史
ARG NODE_VERSION=20.10.0
# build satge
FROM node:${NODE_VERSION}-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm config set registry https://registry.npmmirror.com/
RUN npm ci
COPY . .
RUN npm run build
# production stage
FROM node:${NODE_VERSION}-alpine as production-stage
WORKDIR /app
COPY --from=build-stage /app/dist ./
COPY --from=build-stage /app/package*.json ./
RUN npm install --omit=dev
RUN npm install pm2 -g
EXPOSE 3000
CMD ["pm2-runtime", "/app/main.js"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weblc/julycms.com-server.git
[email protected]:weblc/julycms.com-server.git
weblc
julycms.com-server
julycms.com-server
master

搜索帮助