Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 615 Bytes
FROM fedora:25
MAINTAINER jberkus@redhat.com
WORKDIR /tmp
RUN dnf install -y tar libcurl-devel zlib-devel patch rubygem-bundler ruby-devel git make gcc gcc-c++ redhat-rpm-config && dnf 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
#ADD source /tmp/source
RUN bundle install
EXPOSE 4567
ENTRYPOINT [ "bundle", "exec" ]
CMD [ "middleman", "server" ]
LABEL RUN="/usr/bin/docker run --rm -ti -p 4567:4567 \
-v \"\$PWD/source:/tmp/source:ro\" \
-v \"\$PWD/data:/tmp/data\" \
\${IMAGE}"