oms提供docker构建方式
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user