diff --git a/Dockerfile b/Dockerfile index 5e41606..ec2225f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ RUN useradd --create-home app \ WORKDIR /home/app RUN su app -c "npm install -g --prefix . wiki@0.11.4" RUN su app -c "mkdir .wiki" -COPY configure-and-launch-wiki configure-and-launch-wiki -RUN chown app configure-and-launch-wiki +COPY configure-and-launch-wiki set-owner-name ./ +RUN chown app configure-and-launch-wiki set-owner-name VOLUME "/home/app/.wiki" ENV DOMAIN=localhost ENV OWNER_NAME="The Owner" diff --git a/set-owner-name b/set-owner-name new file mode 100755 index 0000000..b912396 --- /dev/null +++ b/set-owner-name @@ -0,0 +1,39 @@ +#!/bin/bash -eu +set -o pipefail + +usage() { + cat < $OWNER_FILE +} + +report-success() { + cat <