Skip to content

Commit

Permalink
chore: upgrade to nodejs 18 (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittstruck authored Dec 29, 2023
1 parent 91fbb16 commit de97e55
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,18 @@ ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
# This is our base image for development as well as building the production image:
FROM ${BUILDER_IMAGE} as base

ENV NODE_URL=https://deb.nodesource.com/setup_16.x

# Install curl as a prerequisite for nodejs:
RUN apt-get -y update && apt-get install -y curl
# Install node
ENV NODE_MAJOR=18

RUN apt-get update && 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_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list

# install build dependencies
RUN curl -fsSL $NODE_URL | bash - && \
apt-get install -y nodejs \
RUN apt-get update && apt-get install -y nodejs \
build-essential \
inotify-tools \
postgresql-client \
Expand Down

0 comments on commit de97e55

Please sign in to comment.