Tag: pyserial

使用docker从串口读取数据

我有一个python代码(ard_temp.py),它使用pyserial库从USB串口读取数据,然后使用散景显示在端口50010中。 它适用于寡妇和Mac。 任何想法如何dockerize它? 我做了一个Dockerfile如下: # Use an official Python runtime as a parent image FROM continuumio/anaconda # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app ADD . /app # Install any needed packages specified in requirements.txt RUN conda install pyserial RUN conda install bokeh […]