website/Dockerfile

18 lines
305 B
Docker

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