11FROM ubuntu:20.04
22
3+ ARG NODE_VERSION=10
4+
35ENV DEBIAN_FRONTEND noninteractive
4- ENV NODE_OPTIONS --max_old_space_size=4096
6+ ENV NODE_OPTIONS --max_old_space_size=4096 --use-openssl-ca
7+
8+ # Configuring NodeJS version
9+ RUN apt-get clean
10+
11+ RUN apt-get update && \
12+ apt-get upgrade -y && \
13+ apt-get install -y curl
14+
15+ RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION:=10}.x | sh
516
617RUN apt-get update && \
18+ apt-get upgrade -y && \
719 apt-get install -y \
820 git \
921 curl \
1022 python3 \
1123 nodejs \
12- npm \
1324 firefox \
25+ nodejs \
1426 && rm -rf /var/lib/apt/lists/*
1527
16- RUN npm install -g npm@7 \
17- && /bin/bash -c "hash -d npm"
28+ RUN /bin/bash -c "hash -d npm"
1829
1930# Enable tls v1.0
2031RUN echo "openssl_conf = openssl_configuration\n " |cat - /etc/ssl/openssl.cnf > /tmp/openssl_conf.cnf \
@@ -31,14 +42,20 @@ CipherString = DEFAULT:@SECLEVEL=1" >> /etc/ssl/openssl.cnf
3142COPY CAs/* /usr/local/share/ca-certificates/
3243# Store custom CAs somewhere where the backend can find them later.
3344COPY CustomCAs/* /usr/local/share/custom-ca-certificates/
34- RUN update-ca-certificates
45+
46+ RUN update-ca-certificates --verbose
3547
3648# Creating an user for building the driver and running the tests
3749RUN useradd -m driver && echo "driver:driver" | chpasswd && adduser driver sudo
3850VOLUME /driver
39- RUN chown -Rh driver:driver /driver
51+ RUN chown -Rh driver:driver /home/driver
52+ WORKDIR /home/driver
53+
4054USER driver
4155WORKDIR /home/driver
4256CMD /bin/bash
4357RUN mkdir /home/driver/.npm_global
4458RUN npm config set prefix /home/driver/.npm_global
59+
60+ RUN node --version
61+ RUN npm --version
0 commit comments