0 votes
in Docker by

How do you specify a Dockerfile other than the default "Dockerfile" during the build process?

a) Use --filename option

b) Use --source option

c) Use --file option

d) Use --dockerfile option

1 Answer

0 votes
by
c) Use --file option

Explanation:

The --file or -f option allows users to specify a different Dockerfile than the default one. For example, docker build -f MyDockerfile ..

...