Skip to content

Commit

Permalink
Upgrade NodeJS to 20.13.1 and use NPM instead of Yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
gaffneyc committed May 22, 2024
1 parent cbe71c9 commit 2a4f436
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 132 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ RUN curl -sL "https://github.com/DarthSim/overmind/releases/download/v${OVERMIND
&& mv overmind /usr/bin/overmind \
&& chmod +x /usr/bin/overmind

# Add Node.js to sources list
RUN curl -sL https://deb.nodesource.com/setup_17.x | bash -
# Install Node.js version that will enable installation of yarn
RUN apt-get install -y --no-install-recommends \
nodejs \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN npm install -g yarn
# Install JavaScript dependencies
ARG NODE_VERSION=20.13.1
ENV PATH=/usr/local/node/bin:$PATH
RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && \
/tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && \
corepack enable && \
rm -rf /tmp/node-build-master

# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
Expand Down
2 changes: 1 addition & 1 deletion Procfile.dev
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bin/rails server -p 3000
css: yarn build:css --watch
css: npm run build:css -- --watch
183 changes: 183 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 0 additions & 124 deletions yarn.lock

This file was deleted.

0 comments on commit 2a4f436

Please sign in to comment.