I have created one “uploads” folder on server and i am uploading image in this folder using upload functionality of PHP, now whenever a new build is created my newly created folder and uploaded files are removed which are inside this folder, as docker looks the repo for creating new image and not considering newly uploaded folder and files. So, can anyone let me know what is the technique of “uploading image” functionality using PHP on docker.
Shall i create dockerignore file for informing docker to not to touch my “uploads” folder ? Will this work? I doubt that dockeringore file will surely ignore “uploads” folder but the new image may not have my newly created folder and files inside the “uploads” folder as “uploads” folder is present in repo but my newly created folder and files are not present in repo so while creating new image docker may pick the “uploads” folder from repo and will ignore it also but will not include the newly created folder and files inside this folder. But this is my assumption.
Any help will be appreciable.
Thanks in advance.