diff --git a/docker/autoware-openadk/Dockerfile b/docker/autoware-openadk/Dockerfile index 23d260f0317..07dc6046494 100644 --- a/docker/autoware-openadk/Dockerfile +++ b/docker/autoware-openadk/Dockerfile @@ -5,22 +5,12 @@ FROM $BASE_IMAGE as base SHELL ["/bin/bash", "-o", "pipefail", "-c"] ARG ROS_DISTRO -# Install apt packages +# Install apt packages and add GitHub to known hosts for private repositories RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \ - git \ - ssh \ - wget \ - cmake \ - curl \ gosu \ - gnupg \ - vim \ - unzip \ - lsb-release \ - && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache - -# Add GitHub to known hosts for private repositories -RUN mkdir -p ~/.ssh \ + ssh \ + && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache \ + && mkdir -p ~/.ssh \ && ssh-keyscan github.com >> ~/.ssh/known_hosts # Copy files