diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..d600c93376 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ruby:3.0.1 AS builder +WORKDIR /srv/jekyll +COPY Gemfile Gemfile.lock ./ +RUN bundle install +COPY . . +RUN chown 1000:1000 -R /srv/jekyll +RUN bundle exec jekyll build -d /srv/jekyll/_site --limit-posts 1 + +FROM nginx:alpine +COPY --from=builder /srv/jekyll/_site /usr/share/nginx/html +EXPOSE 80 +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file