-
-
Save GulajavaMinistudio/ceb4dfafa0d8da62291481bbb2799034 to your computer and use it in GitHub Desktop.
Revisions
-
RinatMullayanov revised this gist
Oct 25, 2015 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,5 +24,6 @@ RUN cd /src; npm install # Binds to port 8080 EXPOSE 8080 # Defines your runtime(define default command) # These commands unlike RUN (they are carried out in the construction of the container) are run when the container CMD ["node", "/src/index.js"] -
RinatMullayanov created this gist
Oct 25, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ # # Ubuntu Node.js Dockerfile # # https://github.com/dockerfile/ubuntu/blob/master/Dockerfile # https://docs.docker.com/examples/nodejs_web_app/ # # Pull base image. FROM ubuntu:14.04 # Install Node.js RUN apt-get install --yes curl RUN curl --silent --location https://deb.nodesource.com/setup_4.x | sudo bash - RUN apt-get install --yes nodejs RUN apt-get install --yes build-essential # Bundle app source # Trouble with COPY http://stackoverflow.com/a/30405787/2926832 COPY . /src # Install app dependencies RUN cd /src; npm install # Binds to port 8080 EXPOSE 8080 # Defines your runtime(define default command.) CMD ["node", "/src/index.js"]