Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
docker build -t anhdiepmmk/node-sample:v8 .docker run -it --rm --name web-node -p 80:3000 anhdiepmmk/node-sample:v8
cảm ơn a. video rất hữu ích
if you feel good, please share to the other
FROM node:14-alpineWORKDIR /appRUN chown node:node /appUSER nodeCOPY --chown=node:node package*.json ./RUN npm i --productionCOPY --chown=node:node . .CMD [ "npm", "start" ]
docker build -t anhdiepmmk/node-sample:v8 .
docker run -it --rm --name web-node -p 80:3000 anhdiepmmk/node-sample:v8
cảm ơn a. video rất hữu ích
if you feel good, please share to the other
FROM node:14-alpine
WORKDIR /app
RUN chown node:node /app
USER node
COPY --chown=node:node package*.json ./
RUN npm i --production
COPY --chown=node:node . .
CMD [ "npm", "start" ]