Dockerfile 1.01 KB
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
  libasound2 \
8
  ca-certificates \
9
  && rm -rf /var/lib/apt/lists/*
10

11
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
12 13 14 15
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'

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

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