Dockerfile 1015 Bytes
Newer Older
1 2 3
ARG APPLICATION_IMAGE
FROM ${APPLICATION_IMAGE}

4
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
5
  apt-transport-https \
6
  curl \
7 8
  libasound2 \
  && rm -rf /var/lib/apt/lists/*
9

10
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
11 12 13 14
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg \
  && mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg \
  && sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

15 16 17
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
  code \
  && rm -rf /var/lib/apt/lists/*
18 19 20 21 22 23 24 25 26 27

RUN echo "alias code='code --user-data-dir /root'" >> /root/.bashrc

RUN code --user-data-dir /root \
  --install-extension ajshort.ros \
  --install-extension joaompinto.asciidoctor-vscode \
  --install-extension ms-python.python \
  --install-extension ms-vscode.cpptools \
  --install-extension peterjausovec.vscode-docker \
  --install-extension twxs.cmake