Skip to content

Instantly share code, notes, and snippets.

@paulbdavis
Created December 19, 2013 06:02
Show Gist options
  • Save paulbdavis/8035045 to your computer and use it in GitHub Desktop.
Save paulbdavis/8035045 to your computer and use it in GitHub Desktop.
FROM myrepo/base
MAINTAINER me
RUN mkdir /app
RUN apt-get update && apt-get -y install packages i need;
ENV HOME /root
RUN echo 'ssh host info for git repo server' > /root/.ssh/known_hosts
RUN git clone git@bitbucket.org:me/repo1 /app
RUN cd /app && git checkout origin/docker && npm install;
# add something to invalidate the cache
ADD repos.txt /repos.txt
RUN cd /app && git fetch && git checkout origin/docker;
ENTRYPOINT ["node"]
CMD ["/app/app"]
EXPOSE 3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment