Skip to content

Instantly share code, notes, and snippets.

@jasonbrooks
Last active August 29, 2015 14:06
Show Gist options
  • Select an option

  • Save jasonbrooks/531985f49d6040f895e7 to your computer and use it in GitHub Desktop.

Select an option

Save jasonbrooks/531985f49d6040f895e7 to your computer and use it in GitHub Desktop.
Dockerfile for Middleman
FROM centos:centos7
MAINTAINER [email protected]
WORKDIR /tmp
RUN yum upgrade -y && yum clean all
RUN yum install -y tar rubygems-devel rubygem-bundler ruby-devel git make gcc gcc-c++ patch curl-devel ImageMagick && yum clean all
ADD config.rb /tmp/config.rb
ADD data /tmp/data
ADD Gemfile /tmp/Gemfile
ADD Gemfile.lock /tmp/Gemfile.lock
ADD lib /tmp/lib
RUN bundle install
EXPOSE 4567
CMD bundle exec middleman server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment