Dockerfile 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. FROM nginx:alpine
  2. MAINTAINER Maxime Epain "me@maxep.me"
  3. EXPOSE 80
  4. # Packages
  5. RUN apk --no-cache add \
  6. ruby \
  7. ruby-dev \
  8. ruby-irb \
  9. ruby-rdoc \
  10. ruby-bigdecimal
  11. RUN apk --no-cache add \
  12. zlib-dev \
  13. build-base \
  14. libxml2-dev \
  15. libxslt-dev \
  16. readline-dev \
  17. libffi-dev \
  18. yaml-dev \
  19. zlib-dev \
  20. libffi-dev \
  21. cmake
  22. RUN apk --no-cache add \
  23. linux-headers \
  24. openjdk8-jre \
  25. less \
  26. zlib \
  27. libxml2 \
  28. readline \
  29. libxslt \
  30. libffi \
  31. git \
  32. nodejs \
  33. tzdata \
  34. shadow \
  35. bash \
  36. su-exec \
  37. nodejs-npm \
  38. libressl \
  39. yarn
  40. # Install bundle of gems
  41. WORKDIR /tmp
  42. COPY Gemfile /tmp/
  43. COPY Gemfile.lock /tmp/
  44. RUN gem install bundler \
  45. && bundle config --global silence_root_warning 1 \
  46. && bundle install
  47. # --
  48. RUN addgroup -Sg 1000 jekyll
  49. RUN adduser -Su 1000 -G \
  50. jekyll jekyll
  51. # Add site
  52. COPY . /home/app/site
  53. RUN chown -R jekyll:jekyll /home/app/site
  54. # Build the site with Jekyll
  55. WORKDIR /home/app/site
  56. RUN jekyll build
  57. # Copy site
  58. COPY _site/ /usr/share/nginx/html