close
Skip to content

Fix Dockerfile#139

Merged
william-richard merged 3 commits into
tumblr:masterfrom
discordianfish:dockerize
Apr 3, 2014
Merged

Fix Dockerfile#139
william-richard merged 3 commits into
tumblr:masterfrom
discordianfish:dockerize

Conversation

@discordianfish
Copy link
Copy Markdown
Contributor

For security reasons, Dockerfiles have no access to parent directories, so we can't do ADD ../../ or something like that.
If having the Dockerfile in root is a no go for you, I can change it to do a git checkout in a RUN statement. Although it's better to use ADD because:

  • you can build collins without depending on github as long as you have the code
  • you don't need to check out the repo twice
  • ADD is a cache breaker, RUN not. So there is no easy way to rebuild collins without rerunning all steps in the Dockerfile

Since the tumblr team doesn't want to have the Dockerfile at / and
Dockerfiles have no access to parent directories due to security
reasons, we need to RUN git checkout instead of ADD.
@discordianfish discordianfish changed the title Move Dockerfile to root Fix Dockerfile Apr 1, 2014
william-richard pushed a commit that referenced this pull request Apr 3, 2014
@william-richard william-richard merged commit c1b5c4a into tumblr:master Apr 3, 2014
@discordianfish discordianfish deleted the dockerize branch April 3, 2014 16:34
dalehamel pushed a commit to Shopify/collins that referenced this pull request Jun 10, 2014
dalehamel pushed a commit to Shopify/collins that referenced this pull request Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants