File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 1
1
FROM ubuntu:20.04
2
2
3
+ ARG NODE_VERSION=10
4
+
3
5
ENV 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
5
10
6
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
16
+
17
+ RUN apt-get update && \
18
+ apt-get upgrade -y && \
7
19
apt-get install -y \
8
20
git \
9
21
curl \
10
22
python3 \
23
+ nodejs \
11
24
firefox \
25
+ nodejs \
12
26
&& rm -rf /var/lib/apt/lists/*
13
27
14
- # Configuring NodeJS version
15
- RUN apt-get clean
16
- RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION:=10}.x | sh
17
- RUN apt-get install -y nodejs && rm -rf /var/lib/apt/lists/*
18
28
RUN /bin/bash -c "hash -d npm"
19
29
20
30
# Enable tls v1.0
@@ -32,16 +42,20 @@ CipherString = DEFAULT:@SECLEVEL=1" >> /etc/ssl/openssl.cnf
32
42
COPY CAs/* /usr/local/share/ca-certificates/
33
43
# Store custom CAs somewhere where the backend can find them later.
34
44
COPY CustomCAs/* /usr/local/share/custom-ca-certificates/
45
+
35
46
RUN update-ca-certificates --verbose
36
47
37
48
# Creating an user for building the driver and running the tests
38
49
RUN useradd -m driver && echo "driver:driver" | chpasswd && adduser driver sudo
39
50
VOLUME /driver
40
- RUN chown -Rh driver:driver /driver
41
51
RUN chown -Rh driver:driver /home/driver
42
52
WORKDIR /home/driver
43
53
44
54
USER driver
55
+ WORKDIR /home/driver
56
+ CMD /bin/bash
57
+ RUN mkdir /home/driver/.npm_global
58
+ RUN npm config set prefix /home/driver/.npm_global
45
59
46
60
RUN node --version
47
61
RUN npm --version
You can’t perform that action at this time.
0 commit comments