Created
March 20, 2018 00:04
-
-
Save eduardobcastro/688aaa435cd3633743606244413742bc to your computer and use it in GitHub Desktop.
Dockerized Visual Studio Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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