2023-01-24 20:51:59 +00:00
|
|
|
FROM ruby:3.2.2-alpine AS builder
|
2023-07-23 03:36:11 +00:00
|
|
|
LABEL stage=distrust-co-builder
|
2023-01-24 20:51:59 +00:00
|
|
|
RUN apk update && apk add g++ make git git-lfs
|
|
|
|
RUN mkdir -p /home
|
|
|
|
COPY Gemfile /home
|
2023-07-23 02:32:49 +00:00
|
|
|
COPY Gemfile.lock /home
|
2023-01-24 20:51:59 +00:00
|
|
|
COPY _vendor /home/_vendor
|
|
|
|
WORKDIR /home
|
|
|
|
RUN bundle install
|
2023-07-23 02:50:14 +00:00
|
|
|
COPY . /home
|
|
|
|
RUN jekyll build
|
2023-01-24 20:51:59 +00:00
|
|
|
|
2023-07-23 02:50:14 +00:00
|
|
|
FROM nginx
|
|
|
|
COPY --from=builder /home/_site /usr/share/nginx/html
|
2023-08-05 18:03:10 +00:00
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|