Skip to content

Commit 0731b7d

Browse files
committed
update Dockderfile
1 parent f1c1d51 commit 0731b7d

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM ubuntu:latest
22

33
ADD entrypoint.sh /entrypoint.sh
4+
USER root
5+
WORKDIR /home/app
6+
COPY ./package.json /home/app/package.json
47
RUN apt-get update
5-
RUN apt-get install curl
6-
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
7-
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
8+
RUN apt-get -y install curl gnupg
9+
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
10+
RUN apt-get -y install nodejs
11+
RUN npm install
1012
RUN chmod +x /entrypoint.sh
1113
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)