dockerfiles/visualstudio/Dockerfile

50 lines
1.1 KiB
Docker
Raw Normal View History

# 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
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl \
git \
libasound2 \
libgconf-2-4 \
libgnome-keyring-dev \
libgtk2.0-0 \
libnss3 \
libpci3 \
libxtst6 \
unzip \
--no-install-recommends
ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \
&& chown -R user:user $HOME
# install node
RUN curl -sL https://deb.nodesource.com/setup | bash -
RUN apt-get update && apt-get install -y \
nodejs \
&& rm -rf /var/lib/apt/lists/* \
&& npm update -g
# 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/ \
&& 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
ENTRYPOINT [ "/usr/local/bin/start.sh" ]