Install latest npm (outside of apt repo)
This resolves a dependency conflict between libssl-dev and the npm available in apt standard repos
This commit is contained in:
1 parent
4000d62710
commit
54c0c16d3b
1 file changed
+6
-2
+6
-2
@@ -10,6 +10,12 @@ RUN \
|
||||
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main" >> /etc/apt/sources.list && \
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key > llvm_key && apt-key add llvm_key
|
||||
|
||||
# add the latest node repository to apt sources (npm in the standard bionic apt
|
||||
# repostitory depends on libssl1.0-dev, but emumba depends on libssl-dev, so a
|
||||
# the latest npm must be installed to avoid this dependency conflict
|
||||
RUN \
|
||||
wget -O - https://deb.nodesource.com/setup_16.x > install_node.sh && chmod +x install_node.sh && ./install_node.sh
|
||||
|
||||
RUN \
|
||||
apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
@@ -67,7 +73,6 @@ RUN \
|
||||
tcpdump \
|
||||
valgrind \
|
||||
tzdata \
|
||||
npm \
|
||||
nodejs \
|
||||
rsync \
|
||||
datamash \
|
||||
@@ -139,7 +144,6 @@ RUN \
|
||||
# install python packages
|
||||
RUN pip install pybars3 paramiko mkdocs
|
||||
RUN pip3 install paramiko cryptography
|
||||
RUN npm install -g npx
|
||||
|
||||
# fix locale so we can run tmux
|
||||
RUN sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
|
||||
|
||||
Reference in new issue
Block a user