Skip to content

Commit

Permalink
update Dockderfile
Browse files Browse the repository at this point in the history
  • Loading branch information
moatazeldebsy committed Mar 20, 2020
1 parent f1c1d51 commit 0731b7d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0731b7d

Please sign in to comment.