Skip to content

Commit

Permalink
[docker] Fix netlify-cli installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Nov 8, 2023
1 parent a9b5c99 commit 418d585
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/docker/Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ RUN apt -y install curl dirmngr apt-transport-https ca-certificates gnupg \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get -y install nodejs npm \
&& apt-get -y install nodejs \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y yarn \
&& rm -rf /var/lib/apt/lists/*
RUN yarn global add node-gyp
RUN yarn global add netlify-cli
RUN npm install netlify-cli -g
ENV HUGO_VERSION=0.117.0
RUN curl -fSL -O "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb" \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y /hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
Expand Down

0 comments on commit 418d585

Please sign in to comment.