Skip to content

Commit

Permalink
Install yarn
Browse files Browse the repository at this point in the history
Why
---

- yarn is used to install serverless plugins sometimes

This change addresses the need by
---------------------------------

- Adding `yarn` to `npm install` step

Next Steps
----------

- none
  • Loading branch information
brianz committed Aug 28, 2017
1 parent 71ed010 commit 4ba8388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ RUN pip install \
boto3

ARG SERVERLESS_VERSION
RUN npm install serverless@${SERVERLESS_VERSION} -g
RUN npm install -g \
serverless@${SERVERLESS_VERSION} \
yarn

RUN echo "alias ll='ls -alFh --color=auto'" >> /root/.bashrc
RUN echo "alias l='ls -alFh --color=auto'" >> /root/.bashrc
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile-python3
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ RUN pip install \
boto3

ARG SERVERLESS_VERSION
RUN npm install serverless@${SERVERLESS_VERSION} -g
RUN npm install -g \
serverless@${SERVERLESS_VERSION} \
yarn

RUN echo "alias ll='ls -alFh --color=auto'" >> /root/.bashrc
RUN echo "alias l='ls -alFh --color=auto'" >> /root/.bashrc
Expand Down

0 comments on commit 4ba8388

Please sign in to comment.