-
-
Save ParkinT/f39c71fde819a13b1e7b to your computer and use it in GitHub Desktop.
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 characters
| # DOCKER-VERSION 1.2.0 | |
| FROM centos:centos6 | |
| # Enable EPEL for Node.js | |
| RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
| # Install Node.js and npm | |
| RUN yum install -y npm | |
| # Creates a new folder on the container | |
| VOLUME /src | |
| # Copies everything from | |
| # the host /src to the container's /src | |
| COPY /src /src | |
| # Installs dependencies | |
| RUN cd /src; npm install | |
| EXPOSE 8080 | |
| CMD ["node", "/src/app.js"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment