2023-08-08 21:11:00 +00:00
|
|
|
FROM ruby:3.2.2-alpine AS builder
|
|
|
|
LABEL stage=distrust-co-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
|
|
|
|
COPY . /home
|
2023-11-10 16:51:27 +00:00
|
|
|
RUN jekyll build
|
2023-08-08 21:11:00 +00:00
|
|
|
|
2023-11-10 16:51:27 +00:00
|
|
|
FROM nginx:1.25
|
2023-08-08 21:11:00 +00:00
|
|
|
COPY --from=builder /home/_site /usr/share/nginx/html
|