2015-06-09 22:44:12 +02:00
|
|
|
# Visual Studio in a container
|
|
|
|
# NOTE: Needs the redering device (yeah... idk)
|
|
|
|
#
|
|
|
|
# docker run -d \
|
|
|
|
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
|
|
# -e DISPLAY=unix$DISPLAY \
|
|
|
|
# --device /dev/dri \
|
|
|
|
# --name visualstudio \
|
|
|
|
# jess/visualstudio
|
|
|
|
|
|
|
|
FROM jess/chromium
|
2015-06-09 22:11:55 +02:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
build-essential \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
2015-06-09 22:44:12 +02:00
|
|
|
git \
|
2015-06-09 22:11:55 +02:00
|
|
|
libasound2 \
|
|
|
|
libgconf-2-4 \
|
|
|
|
libgnome-keyring-dev \
|
|
|
|
libgtk2.0-0 \
|
|
|
|
libnss3 \
|
|
|
|
libpci3 \
|
|
|
|
libxtst6 \
|
|
|
|
unzip \
|
|
|
|
--no-install-recommends
|
|
|
|
|
2015-06-09 22:44:12 +02:00
|
|
|
ENV HOME /home/user
|
|
|
|
RUN useradd --create-home --home-dir $HOME user \
|
|
|
|
&& chown -R user:user $HOME
|
|
|
|
|
2015-06-09 22:11:55 +02:00
|
|
|
# install node
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup | bash -
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
nodejs \
|
2015-06-09 22:44:12 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& npm update -g
|
2015-06-09 22:11:55 +02:00
|
|
|
|
|
|
|
# download the source
|
|
|
|
RUN curl -sSL https://jesss.s3.amazonaws.com/binaries/VSCode-linux-x64.zip -o /tmp/vs.zip \
|
|
|
|
&& unzip /tmp/vs.zip -d /usr/src/ \
|
2015-06-09 22:44:12 +02:00
|
|
|
&& rm -rf /tmp/vs.zip \
|
|
|
|
&& ln -snf /usr/src/VSCode-linux-x64/Code /usr/local/bin/code
|
|
|
|
|
|
|
|
COPY start.sh /usr/local/bin/start.sh
|
|
|
|
WORKDIR $HOME
|
2015-06-09 22:11:55 +02:00
|
|
|
|
2015-06-09 22:44:12 +02:00
|
|
|
ENTRYPOINT [ "/usr/local/bin/start.sh" ]
|