diff --git a/Dockerfile b/Dockerfile index 6a7cefd..f56315b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -167,12 +167,13 @@ # (3) Run Xorg server + x11vnc + X applications # see run.sh for details -RUN echo "alias m='cd /home/$USERNAME ; su $USERNAME'" >> /home/kbkn/.bashrc -RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 1AF1527DE64CB8D9 -RUN add-apt-repository "deb [arch=amd64] http://dist.carla.org/carla $(lsb_release -sc) main" -RUN apt-get update # Update the Debian package index -RUN apt-get install carla-simulator -y -RUN cd /opt/carla-simulator # -RUN apt-get install carla-simulator=0.9.10-1 -y +RUN echo "alias m='cd /home/$USERNAME ; su $USERNAME'" >> /home/kbkn/.bashrc && \ + apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 1AF1527DE64CB8D9 && \ + add-apt-repository "deb [arch=amd64] http://dist.carla.org/carla $(lsb_release -sc) main" && \ + mkdir -p /opt/carla-simulator && \ + cd /opt/carla-simulator && \ + apt-get update && apt-get install -y --no-install-recommends \ + carla-simulator=0.9.10-1 && \ + rm -rf /var/lib/apt/lists/* COPY run.sh /run.sh CMD ["bash", "/run.sh"]