Skip to content

Commit

Permalink
Merge pull request #259 from Project-NISEI/update-npm
Browse files Browse the repository at this point in the history
Use latest NodeSource repo for NPM
  • Loading branch information
haradan authored Dec 19, 2023
2 parents 5a27aab + e31711e commit 562104f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
FROM ruby:3.2.2

# Install essential Linux packages
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql-client curl
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev postgresql-client ca-certificates curl gnupg \
&& rm -rf /var/lib/apt/lists/*

# Install nodejs
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
| gpg --dearmor --yes -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
| tee /etc/apt/sources.list.d/nodesource.list > /dev/null
RUN apt-get update -qq && apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*

# Define where our application will live inside the image
ENV RAILS_ROOT /var/www/cobra
Expand Down

0 comments on commit 562104f

Please sign in to comment.