mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-10 06:52:40 +01:00
Update Visual Studio Code to 1.2 (#154)
This commit is contained in:
committed by
Jess Frazelle
parent
18b8688013
commit
2775f5cb90
71
vscode/Dockerfile
Normal file
71
vscode/Dockerfile
Normal file
@@ -0,0 +1,71 @@
|
||||
# Visual Studio in a container
|
||||
# NOTE: Needs the redering device (yeah... idk)
|
||||
#
|
||||
# docker run -d \
|
||||
# -v /tmp/.X11-unix:/tmp/.X11-unix \
|
||||
# -v $HOME:/home/user \
|
||||
# -e DISPLAY=unix$DISPLAY \
|
||||
# --device /dev/dri \
|
||||
# --name vscode \
|
||||
# jess/vscode
|
||||
|
||||
FROM debian:jessie
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libasound2 \
|
||||
libatk1.0-0 \
|
||||
libcairo2 \
|
||||
libcups2 \
|
||||
libdatrie1 \
|
||||
libdbus-1-3 \
|
||||
libfontconfig1 \
|
||||
libfreetype6 \
|
||||
libgconf-2-4 \
|
||||
libgcrypt20 \
|
||||
libgl1-mesa-dri \
|
||||
libgl1-mesa-glx \
|
||||
libgdk-pixbuf2.0-0 \
|
||||
libglib2.0-0 \
|
||||
libgtk2.0-0 \
|
||||
libgpg-error0 \
|
||||
libgraphite2-3 \
|
||||
libnotify-bin \
|
||||
libnss3 \
|
||||
libnspr4 \
|
||||
libpango-1.0-0 \
|
||||
libpangocairo-1.0-0 \
|
||||
libxcomposite1 \
|
||||
libxcursor1 \
|
||||
libxdmcp6 \
|
||||
libxi6 \
|
||||
libxrandr2 \
|
||||
libxrender1 \
|
||||
libxtst6 \
|
||||
liblzma5 \
|
||||
--no-install-recommends
|
||||
|
||||
ENV HOME /home/user
|
||||
RUN useradd --create-home --home-dir $HOME user \
|
||||
&& chown -R user:user $HOME
|
||||
|
||||
# download the source
|
||||
RUN buildDeps=' \
|
||||
ca-certificates \
|
||||
curl \
|
||||
unzip \
|
||||
' \
|
||||
&& set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
||||
&& curl -sL https://deb.nodesource.com/setup | bash - \
|
||||
&& apt-get update && apt-get install -y nodejs --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& curl -sSL https://az764295.vo.msecnd.net/stable/fe7f407b95b7f78405846188259504b34ef72761/VSCode-linux-x64-stable.zip -o /tmp/vs.zip \
|
||||
&& unzip /tmp/vs.zip -d /usr/src/ \
|
||||
&& rm -rf /tmp/vs.zip \
|
||||
&& apt-get purge -y --auto-remove $buildDeps
|
||||
|
||||
COPY start.sh /usr/local/bin/start.sh
|
||||
WORKDIR $HOME
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/start.sh" ]
|
||||
3
vscode/start.sh
Executable file
3
vscode/start.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
su user -c /usr/src/VSCode-linux-x64/code
|
||||
Reference in New Issue
Block a user