Add yarn to base image
authorRafael dos Santos Silva <xfalcox@gmail.com>
Fri, 6 Aug 2021 19:02:48 +0000 (16:02 -0300)
committerRafael dos Santos Silva <xfalcox@gmail.com>
Fri, 6 Aug 2021 19:30:53 +0000 (16:30 -0300)
image/base/Dockerfile

index 3ba92b49d57cc587ec557c2352d7e56461a94547..92762e11d88cab382d10400325659e238ca88064 100644 (file)
@@ -27,6 +27,8 @@ RUN curl https://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add -
 RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" | \
         tee /etc/apt/sources.list.d/postgres.list
 RUN curl --silent --location https://deb.nodesource.com/setup_16.x | sudo bash -
+RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
+RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
 RUN apt -y update
 # install these without recommends to avoid pulling in e.g.
 # X11 libraries, mailutils
@@ -52,7 +54,7 @@ RUN cd / &&\
     apt clean &&\
     rm -f /etc/apt/apt.conf.d/40proxy &&\
     locale-gen en_US &&\
-    apt install -y nodejs &&\
+    apt install -y nodejs yarn &&\
     npm install -g terser &&\
     npm install -g uglify-js