Dockerfile 881 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 jekyll
  41. RUN gem install jekyll bundler
  42. # --
  43. RUN addgroup -Sg 1000 jekyll
  44. RUN adduser -Su 1000 -G \
  45. jekyll jekyll
  46. # Add site
  47. COPY . /home/app/site
  48. RUN chown -R jekyll:jekyll /home/app/site
  49. # Build the site with Jekyll
  50. WORKDIR /home/app/site
  51. RUN jekyll build
  52. # Copy site
  53. COPY _site/ /usr/share/nginx/html