Dockerize everything
This commit is contained in:
13
poc_modbus_server/Dockerfile
Normal file
13
poc_modbus_server/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user