You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
807B

  1. FROM ruby@sha256:7c77d7351acbf335aeda71bce3ef60403ce703de87064b885f340592e97cc11f AS builder
  2. # I sort of hate that this is duped in .drone.yml and here.
  3. # note that if you update one, you probably have to update the other.
  4. RUN apt update && apt install -y \
  5. bsdmainutils \
  6. build-essential \
  7. make \
  8. bundler \
  9. ghostscript \
  10. imagemagick \
  11. libxml2-dev \
  12. libxslt-dev \
  13. nodejs \
  14. npm \
  15. pkg-config
  16. WORKDIR /var/jekyll
  17. ADD ./Gemfile* /var/jekyll/
  18. RUN npm install -g yarn && \
  19. echo "gem: --no-ri --no-rdoc" > ~/.gemrc && \
  20. yes | gem update --system && \
  21. gem install bundler && \
  22. bundle install
  23. ADD . /var/jekyll/
  24. RUN make build
  25. # finally, copy static over to serving container:
  26. FROM nginx
  27. COPY --from=builder /var/jekyll/_site /usr/share/nginx/html/