mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-10 15:02:41 +01:00
@@ -49,20 +49,21 @@ ENV HOME /home/user
|
||||
RUN useradd --create-home --home-dir $HOME user \
|
||||
&& chown -R user:user $HOME
|
||||
|
||||
ENV CODE_VERSION 1.5.2
|
||||
# download the source
|
||||
RUN buildDeps=' \
|
||||
ca-certificates \
|
||||
curl \
|
||||
unzip \
|
||||
gnupg \
|
||||
' \
|
||||
&& 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 \
|
||||
&& curl -sSL https://az764295.vo.msecnd.net/stable/66f37fd2a99eb9d628dd374d81d78835b410c39b/code_${CODE_VERSION}-1473686317_amd64.deb -o /tmp/vs.deb \
|
||||
&& dpkg -i /tmp/vs.deb \
|
||||
&& rm -rf /tmp/vs.deb \
|
||||
&& apt-get purge -y --auto-remove $buildDeps
|
||||
|
||||
COPY start.sh /usr/local/bin/start.sh
|
||||
|
||||
Reference in New Issue
Block a user