Skip to content

Instantly share code, notes, and snippets.

@eduardobcastro
Created March 20, 2018 00:04
Show Gist options
  • Save eduardobcastro/688aaa435cd3633743606244413742bc to your computer and use it in GitHub Desktop.
Save eduardobcastro/688aaa435cd3633743606244413742bc to your computer and use it in GitHub Desktop.
Dockerized Visual Studio Code
FROM node:9.8-stretch
#Basic tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
htop \
postgresql-client \
rsync \
vim \
&& rm -rf /var/lib/apt/lists/*
#Exiftool
RUN apt-get update \
&& apt-get install -y --no-install-recommends libimage-exiftool-perl=10.40-1 \
&& rm -rf /var/lib/apt/lists/*
#Firebase Tools - login: firebase login --no-localhost
RUN npm install -g firebase-tools --unsafe \
&& rm -rf /var/lib/apt/lists/*
#Code dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
gtk2.0 \
libasound2 \
libgconf-2-4 \
libnotify4 \
libnss3 \
libxkbfile1 \
libxss1 \
libxtst6 \
&& rm -rf /var/lib/apt/lists/*
ENV code_version=2018-03-18
#Code from deb file
RUN apt-get update \
&& curl -L -o /vscode.deb https://go.microsoft.com/fwlink/?LinkID=760868 \
&& dpkg -i /vscode.deb \
&& apt-get install -f \
&& rm -rf /vscode.deb /var/lib/apt/lists/*
USER node
workdir /home/node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment