Created
December 19, 2013 06:02
-
-
Save paulbdavis/8035045 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 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 [email protected]: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