2018-05-08 16:35:40 +00:00
|
|
|
FROM nginx:1
|
|
|
|
MAINTAINER Freifunk Rhein-Sieg e.V. <technik@freifunk-rhein-sieg.net>
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
RUN mkdir -p /project/
|
|
|
|
WORKDIR /project
|
|
|
|
RUN apt-get update -y && apt-get install -y git ruby ruby-dev rubygems build-essential
|
|
|
|
RUN gem install bundle
|
2018-05-10 12:20:40 +00:00
|
|
|
CMD git init && git remote add origin https://github.com/Freifunk-Rhein-Sieg/freifunk-rhein-sieg.net && git fetch && git pull origin v2 && bundle install && bundle exec jekyll build && rm -rf /usr/share/nginx/html/* && cp -r _site/* /usr/share/nginx/html && echo "ready" && nginx -g "daemon off;"
|