Merge branch 'main' of git.distrust.co:public/website

This commit is contained in:
Lance Vick 2023-08-08 09:47:32 -07:00
commit 4885e07e45
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 8 additions and 0 deletions

View File

@ -10,5 +10,13 @@ RUN bundle install
COPY . /home
RUN jekyll build
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
FROM nginx
COPY --from=builder /home/_site /usr/share/nginx/html
COPY --from=mime-types /tmp/mime.types /etc/nginx/mime.types