(UBUNTU) I create my dockerfile with touch dockerfile and I do sudo vim dockerfile. the code inside is:
FROM ubuntu:12.00
CMD echo Hello World!!
So I do sudo docker build . . The shell prints me
Sending build context to Docker daemon TOT kB
TOT is the number of GB that the shell download and Now I have 10.40 GB. IS it possible or I wrong something?
mv your Dockerfile to an empty folder, and build it.
When build a docker image, docker will "use" all files in current folder as its "context".
You can also create a .dockerignore file to exclude files or directories like .gitignore.
Try this command :
docker build -t go_grpc:1.10 - < Dockerfile