diff --git a/Dockerfile b/Dockerfile index f7d7907..7152802 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,9 +16,11 @@ RUN sed -i 's@archive.ubuntu.com@ftp.jaist.ac.jp/pub/Linux@g' /etc/apt/sources.list -RUN apt-get update && \ +RUN apt-get autoclean -y && \ + apt-get clean all -y && \ + apt-get update && \ apt-get upgrade -y && \ - apt-get install --no-install-recommends -y \ + apt-get install -y \ build-essential \ dkms \ openssh-server && \ @@ -35,6 +37,7 @@ apt-get upgrade -y && \ apt-get install --no-install-recommends -y \ python3-pip \ + python3-testresources \ gedit \ ros-noetic-rosserial \ ros-noetic-rosserial-arduino \ @@ -74,7 +77,9 @@ COPY src /home/ubuntu/catkin_ws/src -RUN pip3 install pymodbus && \ +RUN pip3 install --upgrade --no-cache-dir pip && \ + pip3 install --no-cache-dir \ + pymodbus && \ cd /home/ubuntu/catkin_ws/src/ZLAC8015D_python && \ python3 setup.py install && \ usermod -a -G dialout $USER