mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
40483b4707
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
51 lines
1.1 KiB
Docker
51 lines
1.1 KiB
Docker
# 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 \
|
|
npm \
|
|
&& 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" ]
|