Skip to content

Commit cd02885

Browse files
committed
Installed yarn in docker
1 parent 2cdbcac commit cd02885

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,20 @@ RUN apt-get update && apt-get install -y python3 python3-pip build-essential
55
RUN pip3 install -r requirements.txt
66
RUN gem install --no-ri --no-rdoc fpm
77

8+
# I stole this from the linodemanager-builder to get yarn installed
9+
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
10+
11+
RUN apt-get update \
12+
&& apt-get install -y nodejs
13+
14+
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
15+
16+
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
17+
18+
RUN apt-get update \
19+
&& apt-get install -y yarn
20+
# end stole config
21+
822
COPY openapi-linter.py .
923
COPY openapi.yaml .
1024
COPY build-docs.sh .

0 commit comments

Comments
 (0)