Skip to content

Commit

Permalink
uipdate yarn key install/verify commands
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpeterson91 authored Dec 25, 2023
1 parent 3c48cc5 commit 51f87f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wallet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ FROM phusion/baseimage:jammy-1.0.1 as build
ARG NODE_URL
ENV NEAR_WALLET_ENV=mainnet
ENV REACT_APP_NODE_URL=${NODE_URL}

ENV NODE_MAJOR=16
## Test new install method for NodeJS from nodesource
#RUN apt-get update
#RUN apt-get install -y ca-certificates curl gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN NODE_MAJOR=16
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list

##
RUN curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /etc/apt/keyrings/yarn/pubkey.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/yarn/pubkey.gpg] https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

#RUN curl -o /tmp/node_setup.sh "https://deb.nodesource.com/setup_16.x"
#RUN bash /tmp/node_setup.sh
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo 'deb https://dl.yarnpkg.com/debian/ stable main' | tee /etc/apt/sources.list.d/yarn.list

RUN apt-get update -qq && apt-get install -y \
nodejs \
git
Expand Down

0 comments on commit 51f87f9

Please sign in to comment.