Skip to content

Commit 5a0b43a

Browse files
committed
Install yarn AND run yarn install
1 parent e5a81e8 commit 5a0b43a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ RUN apt-get update \
1111
&& apt-get install build-essential curl file git gnupg2 imagemagick libpq-dev libyaml-dev nodejs npm -y \
1212
&& apt-get clean
1313

14+
# install yarn to manage JS dependencies
15+
RUN npm install -g yarn
1416

1517
# install supercronic - a cron alternative
1618
ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-amd64 \
@@ -45,7 +47,7 @@ RUN bundle check || bundle install
4547
COPY package.json yarn.lock ./
4648

4749
# install js dependencies
48-
RUN npm install -g yarn
50+
RUN yarn install
4951

5052
# copy code
5153
COPY . .

0 commit comments

Comments
 (0)