Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Jessica Frazelle 2016-02-03 16:11:52 -08:00
parent 89efd2b8d1
commit 66679f225b
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
3 changed files with 39 additions and 20 deletions

View File

@ -1,4 +1,4 @@
FROM debian:sid FROM debian:stretch
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \

View File

@ -8,41 +8,60 @@
# --name visualstudio \ # --name visualstudio \
# jess/visualstudio # jess/visualstudio
FROM jess/chromium FROM debian:jessie
MAINTAINER Jessica Frazelle <jess@docker.com> MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \
ca-certificates \
curl \
git \
libasound2 \ libasound2 \
libatk1.0-0 \
libcairo2 \
libcups2 \
libdatrie1 \
libdbus-1-3 \
libfontconfig1 \
libfreetype6 \
libgconf-2-4 \ libgconf-2-4 \
libgnome-keyring-dev \ libgcrypt20 \
libgl1-mesa-dri \
libgl1-mesa-glx \
libgdk-pixbuf2.0-0 \
libglib2.0-0 \
libgtk2.0-0 \ libgtk2.0-0 \
libgpg-error0 \
libgraphite2-3 \
libnss3 \ libnss3 \
libpci3 \ libnspr4 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libxcomposite1 \
libxcursor1 \
libxdmcp6 \
libxi6 \
libxrandr2 \
libxrender1 \
libxtst6 \ libxtst6 \
unzip \ liblzma5 \
--no-install-recommends --no-install-recommends
ENV HOME /home/user ENV HOME /home/user
RUN useradd --create-home --home-dir $HOME user \ RUN useradd --create-home --home-dir $HOME user \
&& chown -R user:user $HOME && 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 # download the source
RUN curl -sSL https://jesss.s3.amazonaws.com/binaries/VSCode-linux-x64.zip -o /tmp/vs.zip \ 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/public/0.10.6-release/VSCode-linux64.zip -o /tmp/vs.zip \
&& unzip /tmp/vs.zip -d /usr/src/ \ && unzip /tmp/vs.zip -d /usr/src/ \
&& rm -rf /tmp/vs.zip \ && rm -rf /tmp/vs.zip \
&& ln -snf /usr/src/VSCode-linux-x64/Code /usr/local/bin/code && apt-get purge -y --auto-remove $buildDeps
COPY start.sh /usr/local/bin/start.sh COPY start.sh /usr/local/bin/start.sh
WORKDIR $HOME WORKDIR $HOME

View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
su user -c code su user -c /usr/src/VSCode-linux-x64/Code