ubuntu@VM-16-15-ubuntu:~/gohello$ cat >> Dockerfile
FROM scratch
LABEL version="1.0"
LABEL syh="nb"
COPY hello /
LABEL version="2.0"
CMD ["/hello"]
ubuntu@VM-16-15-ubuntu:~/gohello$ docker image build -t gohello:latest .
Sending build context to Docker daemon 2.028MB
Step 1/6 : FROM scratch
--->
Step 2/6 : LABEL version="1.0"
---> Running in b6941f1bb9fe
Removing intermediate container b6941f1bb9fe
---> 3ab8ff1b3ed1
Step 3/6 : LABEL syh="nb"
---> Running in 638330c50012
Removing intermediate container 638330c50012
---> 1ffb399b72c6
Step 4/6 : COPY hello /
---> f090bfcfa0c9
Step 5/6 : LABEL version="2.0"
---> Running in d4aee950b0af
Removing intermediate container d4aee950b0af
---> 521ea3d7beb6
Step 6/6 : CMD ["/hello"]
---> Running in a46816331893
Removing intermediate container a46816331893
---> 5d0ac51a55df
Successfully built 5d0ac51a55df
Successfully tagged gohello:latest
ubuntu@VM-16-15-ubuntu:~/gohello$ docker image ls -a
REPOSITORY TAG IMAGE ID CREATED SIZE
<none> <none> 521ea3d7beb6 5 seconds ago 2.01MB
gohello latest 5d0ac51a55df 5 seconds ago 2.01MB
<none> <none> f090bfcfa0c9 5 seconds ago 2.01MB
<none> <none>