2024-02-01 12:50:12 +00:00
|
|
|
FROM ruby:3-alpine AS builder
|
|
|
|
LABEL stage=milksad-website-builder
|
2023-12-06 11:34:58 +00:00
|
|
|
RUN apk update && apk add g++ make imagemagick imagemagick-dev imagemagick-libs
|
2023-08-08 21:11:00 +00:00
|
|
|
RUN mkdir -p /home
|
|
|
|
COPY Gemfile /home
|
|
|
|
COPY Gemfile.lock /home
|
2023-11-11 14:41:20 +00:00
|
|
|
# copying _vendor is not needed at the moment
|
|
|
|
# COPY _vendor /home/_vendor
|
2023-08-08 21:11:00 +00:00
|
|
|
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
|
|
|
|
2024-02-01 12:50:12 +00:00
|
|
|
# FROM debian:bookworm AS mime-types
|
|
|
|
# RUN apt-get update && apt-get install -y media-types
|
|
|
|
# RUN echo 'types {' > /tmp/mime.types
|
|
|
|
# RUN sed -e '/^$/d' -e 's/$/;/' /etc/mime.types >> /tmp/mime.types
|
|
|
|
# RUN echo '}' >> /tmp/mime.types
|
2023-11-11 14:41:20 +00:00
|
|
|
|
|
|
|
|
2024-02-01 12:50:12 +00:00
|
|
|
# FROM nginx:1.25
|
|
|
|
# COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# COPY --from=builder /home/_site /usr/share/nginx/html
|
|
|
|
# COPY --from=mime-types /tmp/mime.types /etc/nginx/mime.types
|
|
|
|
# COPY --from=builder /home/_site /usr/share/nginx/html
|