This commit is contained in:
sneak committed 2019-11-14 17:43:12 -08:00
commit 228697c326
13 files changed
+490

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
FROM ubuntu:18.04 as builder
RUN apt update && apt install -y \
build-essential \
bundler \
pkg-config \
libxml2-dev \
libxslt-dev
WORKDIR /var/jekyll
ADD ./Gemfile* /var/jekyll/
RUN echo "gem: --no-ri --no-rdoc" > ~/.gemrc
RUN yes | gem update --system
RUN gem install bundler
RUN bundle install
ADD . /var/jekyll/
RUN bundle exec jekyll build
FROM nginx
COPY --from=builder /var/jekyll/_site /usr/share/nginx/html/