fix(core): update

This commit is contained in:
Philipp Kunz 2019-05-08 23:01:33 +02:00
parent 703c647ecc
commit 1f81791781
2 changed files with 6 additions and 1 deletions

3
.gitignore vendored
View File

@ -16,4 +16,5 @@ dist_web/
dist_serve/ dist_serve/
dist_ts_web/ dist_ts_web/
# custom # custom
code-server/

View File

@ -1,6 +1,8 @@
FROM codercom/code-server FROM codercom/code-server
LABEL author="Lossless GmbH <hello@lossless.com>" LABEL author="Lossless GmbH <hello@lossless.com>"
USER root
WORKDIR /workspace WORKDIR /workspace
# important environment variables # important environment variables
ENV NODE_VERSION_LTS="10.15.3" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm" ENV NODE_VERSION_LTS="10.15.3" NODE_VERSION_STABLE="11.2.0" NVM_DIR="/usr/local/nvm"
@ -28,6 +30,8 @@ RUN su -c "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-s
&& apt-get clean \ && apt-get clean \
&& rm -r /var/lib/apt/lists/*" && rm -r /var/lib/apt/lists/*"
USER coder
# Install nvm with node and npm # Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
RUN bash -c "source $NVM_DIR/nvm.sh \ RUN bash -c "source $NVM_DIR/nvm.sh \