Skip to content

Instantly share code, notes, and snippets.

@dasch
Last active March 2, 2018 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasch/b5964df59bc030e5e3da75f0f1143a5f to your computer and use it in GitHub Desktop.
Save dasch/b5964df59bc030e5e3da75f0f1143a5f to your computer and use it in GitHub Desktop.
# Distributed build system using Makefile-esque syntax.
base:
FROM ruby:2.4.1
bundle: base
ADD Gemfile Gemfile.lock vendor/
RUN bundle install
assets: base
ADD app/assets/
RUN ./compile-assets
code: base
ADD app/ lib/ config/
main: code bundle assets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment