Skip to content

Commit

Permalink
Merge pull request #97 from andy89923/fix/nodejs-version
Browse files Browse the repository at this point in the history
  • Loading branch information
ianchen0119 authored Mar 6, 2024
2 parents b956901 + da3a3e0 commit 3018c70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ ENV DEBIAN_FRONTEND noninteractive

# Install dependencies
RUN apt-get update \
&& apt-get -y install gcc cmake autoconf libtool pkg-config libmnl-dev libyaml-dev apt-transport-https ca-certificates \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& bash -c 'source ~/.bashrc && nvm install --lts && npm install -g yarn' \
&& bash -c 'source ~/.bashrc && ln -s $(which node) $(which yarn) /usr/bin/'
&& apt-get -y install gcc cmake autoconf libtool pkg-config libmnl-dev libyaml-dev apt-transport-https ca-certificates

# Install Nodejs20
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt update \
&& apt install nodejs -y

# Clean apt cache
RUN apt-get clean
1 change: 0 additions & 1 deletion base/Dockerfile.nf.webconsole
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ ENV DEBIAN_FRONTEND noninteractive
# Get Free5GC
COPY free5gc/ $GOPATH/src/free5gc/

RUN npm install -g corepack
RUN cd $GOPATH/src/free5gc \
&& apt-get update \
&& apt-get -y install sudo \
Expand Down

0 comments on commit 3018c70

Please sign in to comment.