We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1c1d51 commit 0731b7dCopy full SHA for 0731b7d
1 file changed
Dockerfile
@@ -1,11 +1,13 @@
1
FROM ubuntu:latest
2
3
ADD entrypoint.sh /entrypoint.sh
4
+USER root
5
+WORKDIR /home/app
6
+COPY ./package.json /home/app/package.json
7
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
8
-RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
9
-RUN nvm install node
+RUN apt-get -y install curl gnupg
+RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
10
+RUN apt-get -y install nodejs
11
+RUN npm install
12
RUN chmod +x /entrypoint.sh
13
ENTRYPOINT ["/entrypoint.sh"]
0 commit comments