Update nodejs, production npm deps

pull/166/head
Piero Toffanin 2021-09-07 11:01:21 -04:00
rodzic 9566ca72ec
commit 173ea2be68
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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"]

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "NodeODM",
"version": "2.1.9",
"version": "2.2.0",
"description": "REST API to access ODM",
"main": "index.js",
"scripts": {