Replace nvm with nodesource scripts

They're back!
This commit is contained in:
Jake Howard 2024-01-13 17:49:51 +00:00
parent 59912f6ddb
commit 6f1b823dfa
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 1 additions and 5 deletions

1
.nvmrc
View file

@ -1 +0,0 @@
20

View file

@ -61,13 +61,10 @@ CMD ["/app/etc/entrypoints/web"]
# Just dev stuff
FROM production as dev
COPY --chown=website .nvmrc ./
RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash \
&& bash --login -c "nvm install --no-progress && nvm alias default $(nvm run --silent --version)"
# Swap user, so the following tasks can be run as root
USER root
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
RUN apt-get update --yes --quiet && apt-get install -y postgresql-client inotify-tools
RUN curl -sSf https://just.systems/install.sh | bash -s -- --to /usr/bin