14 lines
494 B
Docker
14 lines
494 B
Docker
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"]
|