docker构建
docker build -t [tag] .
如何构建docker镜像
docker build <Dockerfile path> -t image-name
dockerfile示例
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
从dockerfile构建docker
$ docker build - < Dockerfile
docker build suppress构建输出
docker image build -t [name] . -q
构建docker文件的命令
// Make sure you are in the same dictionary where you have saved your Dockerfile
command is:
docker build .