Created
July 31, 2015 18:06
-
-
Save reharik/cbc1fc923de976c8242f 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
| FROM mf/nodebox | |
| # Maintainer | |
| MAINTAINER Raif Harik <reharik@gmail.com> | |
| # Expose the node.js port to the Docker host. | |
| EXPOSE 3000 | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| ADD /app/package.json /tmp/package.json | |
| RUN /bin/bash -c "cd /tmp && npm install #&& npm install -g babel" | |
| RUN /bin/bash -c "cd /tmp && cp -a /tmp/node_modules /opt/app/current/node_modules" | |
| RUN ls /opt/app/current | |
| # Entrypoint to docker shell | |
| ENTRYPOINT ["docker-shell"] | |
| #this is the flag that tells the docker-shell what mode to execute | |
| # Startup commands | |
| CMD ["-r"] | |
| # set WORKDIR | |
| WORKDIR /opt/app/current | |
| # Add shell script for starting container | |
| ADD ./docker-shell.sh /usr/bin/docker-shell | |
| RUN chmod +x /usr/bin/docker-shell | |
| #COPY /app /opt/app/current | |
| ==================================================== | |
| api: | |
| build: Api | |
| ports: | |
| - 3000:3000 | |
| volumes: | |
| - /app:/opt/app/current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment