website/Dockerfile

18 lines
304 B
Docker
Raw Normal View History

2023-01-24 20:51:59 +00:00
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
2023-01-24 20:51:59 +00:00
COPY _vendor /home/_vendor
WORKDIR /home
RUN bundle install
COPY . /home
RUN jekyll build
2023-01-24 20:51:59 +00:00
FROM nginx
2023-01-24 20:51:59 +00:00
COPY --from=builder /home/_site /usr/share/nginx/html