File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,16 @@ FROM ubuntu:20.04
2
2
3
3
ENV DEBIAN_FRONTEND noninteractive
4
4
ENV NODE_OPTIONS --max_old_space_size=4096
5
+ SHELL ["/bin/bash" , "--login" , "-c" ]
5
6
6
7
RUN apt-get update && \
7
8
apt-get install -y \
8
9
git \
9
10
curl \
10
11
python3 \
11
- nodejs \
12
- npm \
13
12
firefox \
14
13
&& rm -rf /var/lib/apt/lists/*
15
14
16
- RUN npm install -g npm@7 \
17
- && /bin/bash -c "hash -d npm"
18
-
19
15
# Enable tls v1.0
20
16
RUN echo "openssl_conf = openssl_configuration\n " |cat - /etc/ssl/openssl.cnf > /tmp/openssl_conf.cnf \
21
17
&& mv /tmp/openssl_conf.cnf /etc/ssl/openssl.cnf
@@ -41,4 +37,11 @@ USER driver
41
37
WORKDIR /home/driver
42
38
CMD /bin/bash
43
39
RUN mkdir /home/driver/.npm_global
40
+
41
+ # Configuring NodeJS version
42
+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
43
+ RUN nvm install ${NODE_VERSION:=10}
44
+ RUN nvm use ${NODE_VERSION:=10}
45
+
46
+ # Confiugure home directory
44
47
RUN npm config set prefix /home/driver/.npm_global
You can’t perform that action at this time.
0 commit comments