aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 00edd2d6f34b75469b54eaa695cba7e5b5826479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.6
MAINTAINER gs244f@att.com

ADD . /tmp

#need pip > 8 to have internal pypi repo in requirements.txt
RUN pip install --upgrade pip 
#do the install
WORKDIR /tmp
RUN pip install pyyaml --upgrade
RUN pip install -r requirements.txt
RUN pip install -e .

RUN mkdir /tmp/config
RUN echo 1.2.3.4 > /tmp/config/coll_ip.txt 
RUN echo 1234 > /tmp/config/coll_port.txt 
RUN echo 4.5.6.7 > /tmp/config/pol_ip.txt 
RUN echo 4567 > /tmp/config/pol_port.txt 
EXPOSE 10000

ENV PYTHONPATH  /usr/local/lib/python3.6/site-packages
#CMD run.py
#ENTRYPOINT ["/bin/python", "./bin/run.py"]
#ENTRYPOINT ["/usr/bin/python","./bin/run.py" ]
ENTRYPOINT ["/usr/local/bin/python","./bin/run.py" ]
#ENTRYPOINT ["/bin/ls","-lR", "/usr/local"]