anchor.diff:        org.opencontainers.image.licenses="MIT" \
         org.opencontainers.image.title="gollum-galore" \
         org.opencontainers.image.description="🍬 Gollum wiki with lots of sugar 🍬"
  -      
  -COPY --from=caddybuild --chown=1000:1000 /dist /
  +
  +# - GOLLUM_PARAMS. Additional gollom config: See https://github.com/gollum/gollum#configuration
  +#    e.g '--config /config/gollum.ru', in addition to -v /FOLDER/ON/HOST:/gollum/config
  +# - CADDY_PARAMS e.g '-conf /gollum/config/Caddyfile', in addition to -v /FOLDER/ON/HOST:/gollum/config
  +ENV GOLLUM_PARAMS='' \
  +  CADDY_PARAMS='' \
  +  HOST=':80'
  +
  +COPY --from=gollum-build --chown=1000:1000 /dist /
  +
   RUN \
  -  set -x && \
  -  apk --update add \
  -  # Need for gem install TODO possible to move to build stage?
  -  alpine-sdk=$ALPINE_SDK_VERSION icu-dev=$ICU_DEV_VERSION \
  +  set -x  \
     # Needed for running gollum
  -  git=$GIT_VERSION \
  -  # Install gollum
  -  && gem install gollum -v $GOLLUM_VERSION \
  +  && apk --update add git=$GIT_VERSION \
  +  # Needed for setcap
  +  libcap=2.26-r0 \
     # cleanup apk cache
     && rm -rf /var/cache/apk/* \
     # Initialize wiki data.
  -  # Can be made persistent via -v /FOLDER/ON/HOST:/gollum/wikidata.
     && mkdir -p /gollum/wiki && mkdir -p /gollum/config \
     # Create caddyfile that can be mounted when running
     && touch /gollum/config/Caddyfile \
  
positive.code: # Don't Expose gollum port 4567!
  
  # Start caddy and gollum
  CMD /startup.sh
  
negative.code:      (if [ "${POTENTIAL_TAG}" != "undefined" ]; then echo "${POTENTIAL_TAG} (${COMMIT})"; \
        else echo "${COMMIT}"; fi) > /dist/app/version
  
  
  FROM gollum-ruby
  
  ARG VCS_REF
  ARG SOURCE_REPOSITORY_URL
  ARG GIT_TAG
  ARG BUILD_DATE
  # - Sources:
  #   - https://pkgs.alpinelinux.org/packages?name=git&branch=v3.9
  ARG GIT_VERSION=2.20.1-r0
  
  # See https://github.com/opencontainers/image-spec/blob/master/annotations.md
  LABEL org.opencontainers.image.created="${BUILD_DATE}" \
        org.opencontainers.image.authors="schnatterer" \
  