From 0731b7d243b8d034b4b251f4ca8730d1498d4c33 Mon Sep 17 00:00:00 2001 From: moatazeldebsy Date: Fri, 20 Mar 2020 16:39:31 +0100 Subject: [PATCH] update Dockderfile --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33c4736..9a64aab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,13 @@ FROM ubuntu:latest ADD entrypoint.sh /entrypoint.sh +USER root +WORKDIR /home/app +COPY ./package.json /home/app/package.json RUN apt-get update -RUN apt-get install curl -RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - -RUN apt-get install nodejs -RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash -RUN nvm install node +RUN apt-get -y install curl gnupg +RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - +RUN apt-get -y install nodejs +RUN npm install RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file