We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 942da6b commit 96cbaacCopy full SHA for 96cbaac
src/pythainer/builders/cmds.py
@@ -105,6 +105,7 @@ def get_str_for_dockerfile(
105
if os.path.isfile(self._source_path):
106
shutil.copyfile(self._source_path, docker_file_Path / self._source_path)
107
elif os.path.isdir(self._source_path):
108
+ shutil.rmtree(docker_file_Path / self._source_path)
109
shutil.copytree(self._source_path, docker_file_Path / self._source_path,dirs_exist_ok=True)
110
else:
111
raise FileExistsError(f'{self._source_path} is not a valid target to copy into the docker container')
0 commit comments