FROM adamrehn/ue4-runtime:18.04-cudagl11.4.2 USER root RUN rm /etc/apt/sources.list.d/cuda.list # RUN rm /etc/apt/sources.list.d/nvidia-ml.list RUN apt-get update RUN apt-get install \ sudo \ libglu1-mesa-dev \ xdg-user-dirs \ pulseaudio \ sudo \ x11-xserver-utils \ unzip \ wget \ software-properties-common \ -y --no-install-recommends RUN adduser --force-badname --disabled-password --gecos '' --shell /bin/bash airsim_user && \ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \ adduser airsim_user sudo && \ adduser airsim_user audio && \ adduser airsim_user video USER airsim_user WORKDIR /home/airsim_user # Change the following values to use a different AirSim binary # Also change the AIRSIM_EXECUTABLE variable in docker-entrypoint.sh ENV AIRSIM_BINARY_ZIP_URL=https://github.com/microsoft/AirSim/releases/download/v1.7.0-linux/AirSimNH.zip ENV AIRSIM_BINARY_ZIP_FILENAME=AirSimNH.zip ENV SDL_VIDEODRIVER_VALUE=offscreen ENV SDL_HINT_CUDA_DEVICE=0 # Download and unzip the AirSim binary RUN wget -c $AIRSIM_BINARY_ZIP_URL RUN unzip $AIRSIM_BINARY_ZIP_FILENAME RUN rm $AIRSIM_BINARY_ZIP_FILENAME WORKDIR /home/airsim_user RUN mkdir -p /home/airsim_user/Documents/AirSim ADD ./settings.json /home/airsim_user/Documents/AirSim ADD ./docker-entrypoint.sh /home/airsim_user/docker-entrypoint.sh RUN sudo chown -R airsim_user /home/airsim_user ENTRYPOINT /home/airsim_user/docker-entrypoint.sh