diff --git a/template/v0/Dockerfile b/template/v0/Dockerfile index 0a8243bb..c9ceb6c3 100644 --- a/template/v0/Dockerfile +++ b/template/v0/Dockerfile @@ -27,7 +27,7 @@ RUN usermod "--login=${NB_USER}" "--home=/home/${NB_USER}" --move-home "-u ${NB_ ENV MAMBA_USER=$NB_USER ENV USER=$NB_USER -RUN apt-get update && \ +RUN apt-get update && apt-get upgrade -y && \ apt-get install -y --no-install-recommends sudo gettext-base wget curl unzip git rsync build-essential openssh-client nano cron less mandoc && \ # We just install tzdata below but leave default time zone as UTC. This helps packages like Pandas to function correctly. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata krb5-user libkrb5-dev libsasl2-dev libsasl2-modules && \ diff --git a/template/v1/Dockerfile b/template/v1/Dockerfile index 8f1ac36a..52704d5f 100644 --- a/template/v1/Dockerfile +++ b/template/v1/Dockerfile @@ -30,7 +30,7 @@ RUN usermod "--login=${NB_USER}" "--home=/home/${NB_USER}" --move-home "-u ${NB_ ENV MAMBA_USER=$NB_USER ENV USER=$NB_USER -RUN apt-get update && \ +RUN apt-get update && apt-get upgrade -y && \ apt-get install -y --no-install-recommends sudo gettext-base wget curl unzip git rsync build-essential openssh-client nano cron less mandoc && \ # We just install tzdata below but leave default time zone as UTC. This helps packages like Pandas to function correctly. DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata krb5-user libkrb5-dev libsasl2-dev libsasl2-modules && \ @@ -87,6 +87,9 @@ RUN micromamba install -y --name base --file /tmp/$ENV_IN_FILENAME && \ ARG MAMBA_DOCKERFILE_ACTIVATE=1 RUN sudo ln -s $(which python3) /usr/bin/python +# Update npm version +RUN npm i -g npm + # Configure CodeEditor - Install extensions and set preferences RUN \ extensionloc=/opt/amazon/sagemaker/sagemaker-code-editor-server-data/extensions && mkdir -p "${extensionloc}" \