3000 VOLUME [ "/home/node/storage/" ] WORKDIR /home/node USER node RUN npm install CMD [ "npm", "run", "start" ] ## This sample has some not-so-good result ## but for simplicity
container as application: • Pro: • For your image’s user (other developers), it’s easy to use (just docker-compose up, and everything should work) • Cons: • Slower to see changes when development • (have to rebulid image before run and test)