blob: 19c4f07453ee7cd2cf1b98bd80d12609896aefbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
FROM docker.io/library/ruby:3.3 AS builder
WORKDIR /srv/jekyll
COPY Gemfile* ./
RUN bundle install && rm -rf /usr/local/bundle/cache
FROM docker.io/library/ruby:3.3-slim
RUN apt-get update && apt-get install --no-install-recommends -y git make && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /srv/jekyll
COPY --from=builder /usr/local/bundle /usr/local/bundle
COPY --from=builder /srv/jekyll /srv/jekyll
CMD ["bundle", "exec", "jekyll", "build"]
|