1 Star 0 Fork 0

archen/serverManager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 694 Bytes
一键复制 编辑 原始数据 按行查看 历史
Danielv123 提交于 2020-12-07 14:58 +08:00 . Connect docker image with repository
FROM node:14 AS builder
WORKDIR /usr/src/app
# Add package.json and run npm install
# Its important to copy in package.json first to avoid caching issues
COPY frontend/package*.json ./
RUN npm ci --only=production
# Copy rest of the project and build
COPY frontend/ .
RUN npm run build
FROM node:14-alpine
LABEL org.opencontainers.image.source https://github.com/Danielv123/serverManager
# Open a port in the firewall
EXPOSE 8080
RUN apk add ipmitool
WORKDIR /usr/src/app
COPY backend/package*.json ./
RUN npm ci --only=production
# Copy rest of the backend
COPY backend/src ./src
# Copy our frontend build result
COPY --from=builder /usr/src/app/build build
CMD [ "npm", "start" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mushsoooup/serverManager.git
git@gitee.com:mushsoooup/serverManager.git
mushsoooup
serverManager
serverManager
master

搜索帮助