Skip to content

Instantly share code, notes, and snippets.

@zenlor
Created November 17, 2014 11:33
Show Gist options
  • Select an option

  • Save zenlor/61086258460a01b79757 to your computer and use it in GitHub Desktop.

Select an option

Save zenlor/61086258460a01b79757 to your computer and use it in GitHub Desktop.
# 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