build docker file code example
Example 1: docker build
docker build -t [tag] .
Example 2: docker build from dockerfile
$ docker build - < Dockerfile
Example 3: docker build supress build output
docker image build -t [name] . -q
Example 4: command to build docker file
// Make sure you are in the same dictionary where you have saved your Dockerfile
command is:
docker build .
Example 5: create dockerfile
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py