python 2.7 - Read data from serial port using docker -


i have python code (ard_temp.py) reads data usb serial port using pyserial library , display in port 50010 using bokeh. works on both widows , mac.

any idea how can dockerize it? have made dockerfile follows:

# use official python runtime parent image continuumio/anaconda  # set working directory /app workdir /app  # copy current directory contents container @ /app add . /app  # install needed packages specified in requirements.txt run conda install pyserial run conda install bokeh  # make port 80 available world outside container expose 80 expose 50010 expose 50011  # define environment variable env name world  # run app.py when container launches cmd ["bokeh", "serve", "ard_temp.py", "--port", "50010"] 

just building code in dockerfile not working.

(you can assume port com3).


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -