10分钟学会Dockerfile

Dockerfile示例
FROM node:8

# copy files
COPY . /usr/node/
WORKDIR /usr/node/

# launch service
CMD ["node", "hello.js"]

EXPOSE 8010

Dockerfile常用指令

10分钟学会Dockerfile