I am stuck on a weird problem with docker. I am copying over a local directory to an image. If I make a change to a file in the local directory, it's not being picked up in a new build. I deleted everything via docker system prune -a
and rebuild which recreates the conda env, but ended up not taking the file changes. Could it be that the dest parent directory .config
is hidden, so it's somehow not being deleted?
relevant layers:
ADD ../.config/MyConfig /home/myself/.config/MyConfig
WORKDIR /home/myself/.config/MyConfig
CMD ["cat", "config.json"]
returns
{
"domain_to_info": {
"hello": {
"username": "myself",
"password": { "$ref" : ".password.json#/password" }
}
}
}
however in my config.json
file locally I've changed it to password.json#password
without the hidden .