mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
adding docker build and run files
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -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"]
|
||||||
6
docker/run.sh
Normal file
6
docker/run.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Set password
|
||||||
|
echo 'root:${PASSWORD}' | chpasswd
|
||||||
|
|
||||||
|
./butterfly.server.py --unsecure --host=0.0.0.0
|
||||||
Reference in New Issue
Block a user