Skip to content

Commit e8e0710

Browse files
committed
install node
1 parent eb19dec commit e8e0710

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile18

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ ARG BUILD_TAG=latest
1414

1515
# version: yyyy.n for stable versions / 0.yyyy for development
1616

17+
ENV NODE_VERSION 14
18+
1719
ENV JULIA_VERSION 1.6.6
1820
ENV RUST_VERSION 1.57.0
1921
ENV LISP_VERSION 1.4.5
@@ -29,6 +31,10 @@ LABEL Name="Coding for CRE" \
2931
OS="Ubuntu:$UBUNTU_VERSION" \
3032
Build_=$BUILD_TAG
3133

34+
# Install nodejs
35+
RUN curl -sL "https://deb.nodesource.com/setup_${NODE_VERSION}.x" | bash - && apt-get install -y nodejs ## npm included in nodejs
36+
#RUN apt-get update && apt-get install -y nodejs npm ## npm not included in nodejs
37+
3238
# install R
3339
# https://packages.ubuntu.com/search?suite=default&section=all&arch=any&keywords=r-cran-c&searchon=names
3440
RUN apt-get -y --no-install-recommends install liblapack-dev gfortran cmake
@@ -138,6 +144,8 @@ RUN mkdir -p /cre && \
138144

139145
RUN mkdir -p /cre && touch /cre/versions.txt && \
140146
echo "$(date +'%F %R') \t creCoding \t $CRE_VERSION" >> /cre/versions.txt && \
147+
echo "$(date +'%F %R') \t ldd \t $(ldd --version | grep GLIBC)" >> /cre/versions.txt && \
148+
echo "$(date +'%F %R') \t node \t $(node --version)" >> /cre/versions.txt && \
141149
echo "$(date +'%F %R') \t rpy2 \t $(python3 -c 'import rpy2; print(rpy2.__version__)')" >> /cre/versions.txt && \
142150
echo "$(date +'%F %R') \t $(R --version | grep 'R version')" >> /cre/versions.txt && \
143151
echo "$(date +'%F %R') \t TinyTEX \t $(R -e 'library(tinytex); tinytex::tlmgr_version()' | grep 'TeX Live')" >> /cre/versions.txt && \

0 commit comments

Comments
 (0)