Browse Source

Ajout de nodejs 10.x et yarn

Ajout de nodejs 10.x et yarn
pascal.pp 3 years ago
parent
commit
30410024fe
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      bin/webserver/Dockerfile

+ 12
- 2
bin/webserver/Dockerfile View File

@@ -4,10 +4,20 @@ RUN apt-get -y update --fix-missing
4 4
 RUN apt-get upgrade -y
5 5
 
6 6
 # Install useful tools
7
-RUN apt-get -y install apt-utils nano wget dialog
7
+RUN apt-get -y install apt-utils nano wget dialog curl software-properties-common gnupg
8 8
 
9 9
 # Install useful npm
10
-RUN apt-get -y install npm
10
+RUN curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
11
+RUN echo 'deb https://deb.nodesource.com/node_10.x buster main' > /etc/apt/sources.list.d/nodesource.list
12
+RUN echo 'deb-src https://deb.nodesource.com/node_10.x buster main' >> /etc/apt/sources.list.d/nodesource.list
13
+RUN apt-get -y update
14
+RUN apt-get -y install nodejs
15
+
16
+# Install Yarn
17
+RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
18
+RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
19
+RUN apt-get -y update
20
+RUN apt-get -y install yarn
11 21
 
12 22
 # Install useful cron
13 23
 RUN apt-get -y install cron

Loading…
Cancel
Save