Created
November 17, 2014 11:33
-
-
Save zenlor/61086258460a01b79757 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
| # Bad dockerfile | |
| # a docker container should run only one command. | |
| # | |
| FROM node:0.10-slim | |
| RUN mkdir -p /app | |
| WORKDIR /app | |
| RUN curl https://raw.githubusercontent.com/hecticjeff/shoreman/master/shoreman.sh > /bin/shoreman &&\ | |
| chmod +x /bin/shoreman | |
| # Play nice with Dokku | |
| ENV PORT 8080 | |
| EXPOSE 8080 | |
| # Keep builds small | |
| COPY package.json /app/ | |
| RUN npm install | |
| # install the app | |
| ADD . /app | |
| # Execute Shoreman for the time being | |
| CMD [ "/bin/bash", "/bin/shoreman" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment