view service/collector/Dockerfile @ 1254:666f9a2198a7

add types to sse_collector.py. Surprisingly few bugs found. Ignore-this: df20acbf7ec27226f3060f3b5a4c710b darcs-hash:7c699d51556f20c785dfc9190e9ce8e38c0fa1e6
author drewp <drewp@bigasterisk.com>
date Fri, 19 Apr 2019 01:08:01 -0700
parents 9cfa7f69e41f
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" ]