1

I am able to copy files to docker container by archiving the files.

        var dockerode = require('dockerode');
        var docker = new dockerode();
        var dockrContainer = docker.getContainer(containername);
        dockrContainer.putArchive(srcpath, {path: destpath});

The problem is that if I have an archived file in my code repository then my company security scan gives violation. Using dockerode, is it possible to copy multiple files of a directory into docker container without archiving them?

firstpostcommenter
  • 2,328
  • 4
  • 30
  • 59

0 Answers0