diff --git a/Dockerfile b/Dockerfile index 6734f7c..b298819 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,6 @@ RUN npm install authelia@${VERSION} EXPOSE 3000 -COPY start.sh config.template.yml ./yaml-override.js /app/code/ +COPY start.sh config.template.yml config.custom_template.yml ./yaml-override.js /app/code/ CMD [ "/app/code/start.sh" ] diff --git a/start.sh b/start.sh index 87f5a35..6e2fa98 100755 --- a/start.sh +++ b/start.sh @@ -36,8 +36,7 @@ sed -e "s|##DEFAULT_REDIRECT_URL|${WEBADMIN_ORIGIN}|" \ # Create override config.yml file if not exists if [[ ! -f /app/data/config.yml ]]; then - cp /app/code/config.custom_template.yml > /app/data/config.yml - echo "# Add additional customizations in this file" > /app/data/config.yml + cp /app/code/config.custom_template.yml /app/data/config.yml fi # merge yaml files