evilsocket / xray

XRay is a tool for recon, mapping and OSINT gathering from public networks.
GNU General Public License v3.0
2.19k stars 297 forks source link

Added Dockerfile to allow a docker container to be built #15

Closed xpn closed 7 years ago

xpn commented 7 years ago

As discussed in an earlier twitter conversation (https://twitter.com/_xpn_/status/884423477993897984), XRay works well in a docker image, specifically the base image "golang:alpine".

I've added a new "Dockerfile" to the root of the project to allow building XRay as a Docker image, and also updated README.md with instructions on how to build the image.

Note:

Currently I have the following docker hub image set up: https://hub.docker.com/r/xpnsec/xray/.

This is pointing to my own Dockerfile in a repo at https://github.com/xpn/xray-docker. If this pull request is accepted, and the Dockerfile is added to the project, it may make sense to repoint the dockerhub build to this project and keep it self-contained.