krmaxwell / maltrieve

A tool to retrieve malware directly from the source for security researchers.
GNU General Public License v3.0
562 stars 184 forks source link

Fix #32: Dockerfile to create a Docker-container for maltrieve #79

Closed mboman closed 9 years ago

mboman commented 9 years ago

As per bug #32, here is the Dockerfile to create a Docker-container for maltrieve. Tested with Docker 1.4.1.

krmaxwell commented 9 years ago

This is indeed better than mine. Will test this evening!

krmaxwell commented 9 years ago

I love this Dockerfile and it is much cleaner and better than mine. I made two additional changes.

  1. The Dockerfile is now in ./docker/. From the Docker docs:

    In most cases, it's best to put each Dockerfile in an empty directory, and then add only the files needed for building that Dockerfile to that directory. To further speed up the build, you can exclude files and directories by adding a .dockerignore file to the same directory.

  2. There was a permissions error when running because /home/maltrieve was created and owned by root. An explicit chown -R fixed that.