how to ignore a line in dockerfile using dockerignore?

0

I need to ignore a line in dockerfile using dockerignore or anything that helps me troubleshoot a problem. I am sending print of the errors that happened.

I need to ignore the following line in dockerignore: ADD. / home / hubot / node_modules / hubot-rocketchat

    
asked by anonymous 01.12.2017 / 12:58

2 answers

1

The Archive .dockerignore serves to exclude unnecessary files or directories from their build context , used to speed up the build process when the directory where the build is done contains heavy files or folders.

To ignore a line in Dockerfile, just comment with # as reported in the previous answer.

    
26.01.2018 / 13:04
0

You can not ignore a line in a dockerfile unless it is commented out. Comments are made with #.

    
02.12.2017 / 10:11