Webseite als Jekyll-Projekt https://software-berater.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
610 B

# Jekyll build
#
FROM jekyll/jekyll:4.2.0 as builder
ENV TZ=Europe/Berlin \
JEKYLL_ENV=production \
PLANTUML_VERSION=1.2021.12
RUN apk add --no-cache openjdk8-jre graphviz ttf-droid ttf-droid-nonlatin
RUN mkdir /site && chown -R jekyll:jekyll /site
COPY Gemfile* /tmp/
RUN bundle install --gemfile=/tmp/Gemfile --quiet
USER jekyll
WORKDIR /site
COPY --chown=jekyll:jekyll . /site/
RUN jekyll build
# nginx runtime
#
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder --chown=nginx:nginx /site/_site/ /usr/share/nginx/html