Dockerize everything

This commit is contained in:
Patrick McDonagh
2017-05-23 12:38:03 -05:00
parent 0644242498
commit fa6d451f71
8 changed files with 91 additions and 22 deletions

View File

@@ -0,0 +1,13 @@
FROM python:2.7
# Install some python packages
RUN pip install requests pymongo pymodbus cryptography pyasn1
RUN pip install git+https://github.com/Henry-Pump/Pycomm-Helper.git
RUN pip install git+https://github.com/ruscito/pycomm.git
# Copy source files
RUN mkdir /root/poc_to_modbus
COPY poc_modbus_server/poc_to_modbus.py /root/poc_to_modbus/poc_to_modbus.py
COPY poc_modbus_server/run_server.py /root/poc_to_modbus/run_server.py
CMD ["python", "-u", "/root/poc_to_modbus/run_server.py"]