Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. # ============================================================
  2. # Build your jekyll blog
  3. # ============================================================
  4. FROM jekyll/jekyll:stable AS build
  5.  
  6. RUN mkdir /jekyll-minima
  7. WORKDIR /jekyll-minima
  8.  
  9. # copy the blog source
  10. COPY . .
  11.  
  12. # permission for bundle to write gemfile.lock
  13. RUN chmod 777 ./
  14.  
  15. # Install dependencies
  16. RUN bundle install
  17.  
  18. # Build
  19. RUN bundle exec jekyll build
  20.  
  21. # ============================================================
  22. # Serve the build files with NGINX
  23. # ============================================================
  24. FROM nginx as nginx
  25.  
  26. COPY nginx.conf /etc/nginx/conf.d/default.conf
  27.  
  28. # Copy build files of the blog
  29. COPY --from=build /jekyll-minima/_site /usr/share/nginx/html
  30.  
  31. EXPOSE 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement