mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2025-01-12 04:18:13 +00:00
28 lines
562 B
Docker
28 lines
562 B
Docker
FROM ubuntu:16.04
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y -q --no-install-recommends \
|
|
build-essential \
|
|
libffi-dev \
|
|
libssl-dev \
|
|
python-dev \
|
|
python-setuptools \
|
|
ca-certificates \
|
|
&& easy_install pip \
|
|
&& pip install --upgrade setuptools \
|
|
&& apt-get clean \
|
|
&& rm -r /var/lib/apt/lists/*
|
|
|
|
WORKDIR /opt
|
|
ADD . /opt/app
|
|
WORKDIR /opt/app
|
|
|
|
RUN python setup.py build \
|
|
&& python setup.py install
|
|
|
|
ADD docker/run.sh /opt/run.sh
|
|
|
|
EXPOSE 57575
|
|
|
|
CMD ["butterfly.server.py", "--unsecure", "--host=0.0.0.0"]
|
|
ENTRYPOINT ["docker/run.sh"]
|