Skip to content

Commit

Permalink
Upgrade to node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaAutumn committed Dec 11, 2023
1 parent 29dd8a6 commit c438959
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/deploy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ COPY . /build/frontend
RUN mv /build/frontend/.env.staging.example /build/frontend/.env.staging

# Add Node 16 support
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
apt-get install -y nodejs
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 | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
RUN NODE_MAJOR=18 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs

RUN npm install --global yarn

Expand Down

0 comments on commit c438959

Please sign in to comment.