IOT线 鉴权系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
580 B

3 years ago
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder
3 years ago
COPY . /var/app
WORKDIR /var/app
EXPOSE 8080
3 years ago
RUN npm config set registry=http://10.8.30.22:7000
RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json
RUN npm cache clean -f
3 years ago
RUN rm -rf package-lock.json
RUN npm install --registry http://10.8.30.22:7000 --unsafe-perm=true --allow-root
3 years ago
3 years ago
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12
3 years ago
WORKDIR /app
COPY --from=builder /var/app .
3 years ago
3 years ago
CMD ["node", "server.js"]