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 1218595
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions frontend/deploy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ COPY . /build/frontend
# Copy over the staging config
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
# Add Node 18 support
RUN apt-get install -y ca-certificates curl
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 1218595

Please sign in to comment.