Skip to content

Instantly share code, notes, and snippets.

@mrserverless
Last active August 13, 2016 19:29
Show Gist options
  • Save mrserverless/b297089e8eb71f9d107e to your computer and use it in GitHub Desktop.
Save mrserverless/b297089e8eb71f9d107e to your computer and use it in GitHub Desktop.
Quay.IO Cache Buster when triggering a github Dockerfile build
FROM busybox
# any thing after here will not be cached
# since Quay.IO check out will results in a different timestamp to the cache
ADD .git/HEAD /app/CACHE_BUSTER
RUN rm CACHE_BUSTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment