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