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 52307b0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions frontend/deploy.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ 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 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 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | 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 52307b0

Please sign in to comment.