skip to Main Content

I have a .dockerignore file and I want to exclude node module node_modules.

Whatever I type in the file and I save, it does not save.

What could be the issue?

2

Answers


  1. Chosen as BEST ANSWER

    I don't know why it is still not saving through vs code. So finally what I have done is, I have open it in another editor and then I was able to save it.


    1. Looks like you have to set proper chmod and chown for this file and add it to repository via git commit.
    2. Check official docs at https://docs.docker.com/engine/reference/builder/#dockerignore-file
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search