anchor.diff:  
   MAINTAINER Johannes Schnatterer <johannes@schnatterer.info>
   
  -ENV GOLLUM_VERSION="4.1.2"
  -
  -# https://pkgs.alpinelinux.org/packages?name=git&branch=v3.8
  -ENV GIT_VERSION=2.18.0-r0
  -# https://pkgs.alpinelinux.org/packages?name=rsync&branch=v3.8
  -ENV RSYNC_VERSION=3.1.3-r1
  -# https://pkgs.alpinelinux.org/packages?name=openssh&branch=v3.8
  -ENV OPENSSH_VERSION=7.7_p1-r3
  -
  -# https://pkgs.alpinelinux.org/packages?name=openssh&branch=v3.8
  -ENV ALPINE_SDK_VERSION=1.0-r0
  -#https://pkgs.alpinelinux.org/packages?name=icu-dev&branch=v3.8
  -ENV ICU_DEV_VERSION=60.2-r2
  -
  -# 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
  -ENV GOLLUM_PARAMS=''
  -# e.g '-conf /gollum/config/Caddyfile', in addition to -v /FOLDER/ON/HOST:/gollum/config
  -ENV CADDY_PARAMS=''
  -ENV HOST=':80'
  +# - Sources:
  +#   - https://pkgs.alpinelinux.org/packages?name=git&branch=v3.8
  +#   - https://pkgs.alpinelinux.org/packages?name=rsync&branch=v3.8
  +#   - https://pkgs.alpinelinux.org/packages?name=openssh&branch=v3.8
  +# - 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
  +# We could use ARG here, but it seems impossible to compress multiple ARGs into one layer
  +ENV GOLLUM_VERSION=4.1.2 \
  +  GIT_VERSION=2.18.1-r0 \
  +  RSYNC_VERSION=3.1.3-r1 \
  +  OPENSSH_VERSION=7.7_p1-r4 \
  +  ALPINE_SDK_VERSION=1.0-r0 \
  +  ICU_DEV_VERSION=60.2-r2 \
  +  GOLLUM_PARAMS='' \
  +  CADDY_PARAMS='' \
  +  HOST=':80'
   
   # As we need to start two processes, copy a startup script that starts only one process in the foreground  :-/
   # BTW you can customize 'gollum's' git user using the following command in the (mounted) /gollum/wiki folder:
   #  git config user.name 'John Doe' && git config user.email 'john@doe.org'
   COPY startup.sh /startup.sh
  +COPY Caddyfile /app/Caddyfile
   COPY --from=caddybuild /go/src/github.com/mholt/caddy/caddy/caddy /usr/local/bin/
   
   RUN \
  
positive.code:   && mkdir -p /gollum/wiki && mkdir -p /gollum/config \
    # Create caddyfile that can be mounted when running
    && touch /gollum/config/Caddyfile \
    # Create base folder for startup script.
    && mkdir /app \
    # Make dirs world-writeable. On Openshift this won't run as user defined bellow...
    && chmod a+rw /app \
    && chmod -R a+rw /gollum/ \
  
negative.code:   && setcap cap_net_bind_service=+ep $(which caddy) \
    && chmod +rx /startup.sh
  
  WORKDIR  app
  
  EXPOSE 80
  