Skip to content

Commit dba7dd2

Browse files
committed
update Dockerfile
1 parent 0731b7d commit dba7dd2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
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
74
RUN apt-get update
85
RUN apt-get -y install curl gnupg
96
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash -
107
RUN apt-get -y install nodejs
11-
RUN npm install
8+
RUN npm install npm@latest -g
129
RUN chmod +x /entrypoint.sh
10+
RUN node -v
11+
RUN npm -v
1312
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)