how to ignore a line in dockerfile using dockerignore?

Asked

Viewed 172 times

0

I need to ignore a line on dockerfile using dockerignore or anything that helps me solve 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 inserir a descrição da imagem aqui

2 answers

1

The Archive .dockerignore serves to delete unnecessary files or directories from your build context, used to streamline the build process when the directory where the build is held contains heavy files or folders.

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

0

You cannot ignore a line from a dockerfile unless it is commented on. Comments are made with #.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.