website-public/Dockerfile

15 lines
339 B
Docker
Raw Normal View History

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
RUN jekyll build
FROM nginx:1.25.1
COPY --from=builder /home/_site /usr/share/nginx/html