oms提供docker构建方式

This commit is contained in:
aixianling
2023-12-12 09:23:23 +08:00
parent a27cb95188
commit 3578b3bf3b
2 changed files with 21 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:lts-alpine3.15
LABEL authors="kubbo"
WORKDIR /root/node-service
RUN chown -R node:node /root/node-service
USER node
COPY --chown=node package*.json /root/node-service
RUN npm i
COPY --chown=node . /root/node-service
CMD ["node", "index.js"]