Dockerfile reference | Docker Documentation
docs.docker.com › engine › referenceTraditionally, the Dockerfile is called Dockerfile and located in the root of the context. You use the -f flag with docker build to point to a Dockerfile anywhere in your file system. $ docker build -f /path/to/a/Dockerfile . You can specify a repository and tag at which to save the new image if the build succeeds: $ docker build -t shykes/myapp .
Dockerfile: ADD vs COPY - CenturyLink Cloud Developer Center
www.ctl.io › developers › blogThe file above will be downloaded from the specified URL and added to the container's filesystem at /tmp/main.go. Another form allows you to simply specify the destination directory for the downloaded file: ADD http://foo.com/bar.go /tmp/ Because the <dest> argument ends with a trailing slash, Docker will infer the filename from the URL and add it to the specified directory. In this case, a file named /tmp/bar.go will be added to the container's filesystem.