Dockerfile 829 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG APPLICATION_IMAGE
FROM ${APPLICATION_IMAGE}

RUN apt-get update -qq && apt-get install -y -qq \
  apt-transport-https

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'

RUN apt-get update -qq && apt-get install -y -qq \
  code

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