提交 bf000fbf0230d047543ff6195ae8031d76859647

作者 juvenile
1 个父辈 97b7faee

update

正在显示 1 个修改的文件 包含 6 行增加7 行删除
1 -FROM node:16-alpine  
2 1
3 -WORKDIR /opt/work/hro/frontend/hro 2 +FROM node:16.20.0
4 3
  4 +WORKDIR /home/hro-company-node
5 5
6 -COPY . ./server 6 +COPY package.json ./package.json
7 7
  8 +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
8 9
9 -EXPOSE 3000 10 +RUN apk add git
10 11
11 -ENV NODE_ENV=production  
12 -  
13 -CMD ["node","server/app.js"]  
  12 +RUN npm config set registry https://registry.npm.taobao.org && npm install
注册登录 后发表评论