website/Dockerfile

23 lines
398 B
Docker

FROM ruby:3.2.2-alpine AS builder
RUN apk update && apk add g++ make git git-lfs
RUN mkdir -p /home
COPY Gemfile /home
COPY Gemfile.lock /home
COPY _vendor /home/_vendor
WORKDIR /home
RUN bundle install
FROM ruby:3.2.2-alpine
RUN apk update && apk add git
COPY --from=builder /usr/local/bundle /usr/local/bundle
RUN mkdir -p /home
WORKDIR /home
CMD ["jekyll", "serve", "--host", "0.0.0.0"]