diff Dockerfile @ 1:1275220a644b

pipenv
author drewp@bigasterisk.com
date Tue, 29 Mar 2022 22:02:25 -0700
parents e2d855c00e57
children fd73907cef40
line wrap: on
line diff
--- a/Dockerfile	Tue Mar 29 21:44:04 2022 -0700
+++ b/Dockerfile	Tue Mar 29 22:02:25 2022 -0700
@@ -3,15 +3,12 @@
 WORKDIR /opt
 
 RUN echo 2021-08-26 && apt-get update
-RUN apt-get install -y vim net-tools iputils-ping git
+RUN apt-get install -y vim net-tools iputils-ping git pipenv
 
-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 -U 'https://github.com/drewp/cyclone/archive/python3.zip'
+COPY Pipfile Pipfile.lock ./
+RUN pipenv install
 
-COPY *.py *.html req* *.ini ./
+COPY *.py *.html ./
 
 EXPOSE 9072
 
-CMD [ "python3", "./collector.py" ]