diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..65ce1c4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:14.04.1 + +RUN apt-get update -y +RUN apt-get install -y python-setuptools python-dev build-essential libffi-dev libssl-dev + +WORKDIR /opt +ADD . /opt/app +WORKDIR /opt/app + +RUN python setup.py build +RUN python setup.py install + +CMD ["docker/run.sh"] \ No newline at end of file diff --git a/docker/run.sh b/docker/run.sh new file mode 100644 index 0000000..f10bdfa --- /dev/null +++ b/docker/run.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# Set password +echo 'root:${PASSWORD}' | chpasswd + +./butterfly.server.py --unsecure --host=0.0.0.0 \ No newline at end of file