docker image from dockerfile code example
Example 1: how to build docker image
docker build <Dockerfile path> -t image-name
Example 2: how to open a dockerfile of an image
docker image history --no-trunc image_name > image_history
Example 3: how to create docker image from custom filename
cat DockerFile.debian.foo | docker build -t debian.foo -
Example 4: create dockerfile
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py