view service/collector/Dockerfile @ 794:fafe86ae0b03

py3, k8s, prometheus updates
author drewp@bigasterisk.com
date Sat, 26 Dec 2020 17:00:08 -0800
parents 6d84cd3eb277
children 807282fb3136
line wrap: on
line source

FROM bang5:5000/base_x86

WORKDIR /opt

RUN apt-get install -y vim net-tools iputils-ping

COPY requirements.txt ./
RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -Ur requirements.txt
# not sure why this doesn't work from inside requirements.txt
RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -U 'https://github.com/drewp/cyclone/archive/python3.zip'

COPY *.py *.html req* *.ini ./

EXPOSE 9072

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