view service/collector/Dockerfile @ 451:17a556ddc5ac

add types to sse_collector.py. Surprisingly few bugs found. Ignore-this: df20acbf7ec27226f3060f3b5a4c710b
author drewp@bigasterisk.com
date Fri, 19 Apr 2019 01:08:01 -0700
parents ef7eba0551f2
children 7fd9fa5d33aa
line wrap: on
line source

FROM bang6:5000/base_x86

WORKDIR /opt

RUN apt-get install -y vim

COPY requirements.txt ./
RUN pip3 install -Ur requirements.txt
# not sure why this doesn't work from inside requirements.txt
RUN pip3 install -U 'https://github.com/drewp/cyclone/archive/python3.zip'
RUN touch /usr/local/lib/python3.6/dist-packages/greplin/__init__.py

COPY stubs ./stubs
COPY twisted_sse_demo ./twisted_sse_demo
COPY *.py req* *.ini ./

EXPOSE 9072

CMD [ "python3", "./sse_collector.py" ]