From 4f5177a5fc8119260e32d13401f705004ab6a9f1 Mon Sep 17 00:00:00 2001 From: Dennis Boldt Date: Thu, 29 Apr 2021 21:43:40 +0200 Subject: [PATCH] Bump node to 15.14 + add .nvmrc --- .nvmrc | 1 + README.md | 4 +++- api/Dockerfile | 2 +- frontend/Dockerfile | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..86c6d4b --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +15.14 diff --git a/README.md b/README.md index bb45098..9bd95c4 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,9 @@ make sure to properly set up and secure your server yourself. 1. Create a user for running the application. It is not recommended to run as a user that is also used for other things. Do not run as root! 2. Clone the repository. -3. Install `node` of at least version 14, and also `npm`. +3. Install `node` of at least version 15, and also `npm`. You can use the + [Node Version Manager (npm)](https://github.com/nvm-sh/nvm), since this project + contains a `.nvmrc`. Just run `nvm install` followed by `nvm use`. 4. Run `npm ci` in the `api` and `frontend` directories to install dependencies. 5. Install and configure a MongoDB somewhere. 6. Copy `api/config.json.example` to `api/config.json` and change it to suit diff --git a/api/Dockerfile b/api/Dockerfile index 66859b8..a04c940 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,4 +1,4 @@ -FROM node:15.11.0-buster +FROM node:15.14-buster # Install python3, pip3, and make them the default for `python` and `pip` commands RUN apt-get update && apt-get install -y python3 python3-pip diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 58b9016..6979908 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14 +FROM node:15.14-buster WORKDIR /opt/obs/frontend ADD package.json package-lock.json /opt/obs/frontend/