From 173ea2be68287f0be3b7b5587e9a4b39f2163570 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 7 Sep 2021 11:01:21 -0400 Subject: [PATCH] Update nodejs, production npm deps --- Dockerfile | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 11a95e3..48b24cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ EXPOSE 3000 USER root RUN apt-get update && apt-get install -y curl gpg-agent -RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash - +RUN curl --silent --location https://deb.nodesource.com/setup_14.x | bash - RUN apt-get install -y nodejs unzip p7zip-full && npm install -g nodemon && \ ln -s /code/SuperBuild/install/bin/untwine /usr/bin/untwine && \ ln -s /code/SuperBuild/install/bin/entwine /usr/bin/entwine && \ @@ -17,6 +17,6 @@ RUN mkdir /var/www WORKDIR "/var/www" COPY . /var/www -RUN npm install && mkdir -p tmp +RUN npm install --production && mkdir -p tmp ENTRYPOINT ["/usr/bin/node", "/var/www/index.js"] diff --git a/package.json b/package.json index e13ffa4..cc013a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "NodeODM", - "version": "2.1.9", + "version": "2.2.0", "description": "REST API to access ODM", "main": "index.js", "scripts": {