Skip to content

Instantly share code, notes, and snippets.

@memory
Created January 3, 2017 23:30
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 memory/50a11b7574f759db1759ef6f600ecbdb to your computer and use it in GitHub Desktop.
Save memory/50a11b7574f759db1759ef6f600ecbdb to your computer and use it in GitHub Desktop.
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install -yy build-essential ruby-dev
RUN mkdir -p /tmp/gems
RUN gem install --no-ri --no-rdoc --install-dir /tmp/gems fpm -v 1.8.0
RUN gem install --no-ri --no-rdoc --local --force /tmp/gems/cache/*.gem
RUN find /tmp/gems -name \*.gem | xargs -rn1 /usr/local/bin/fpm --deb-no-default-config-files -d ruby --prefix `gem environment gemdir` -s gem -t deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment