From c4eb1163af88cbb1bcb42c7183e0bdce5939df5b Mon Sep 17 00:00:00 2001 From: Thomas Ganter Date: Tue, 16 Mar 2021 08:27:56 +0100 Subject: [PATCH] User Account - Put Kirby Admin Account into the Docker Image - Updated to latest kirby version --- Dockerfile | 12 +++++++++--- UCQ1Lrae/.htpasswd | 1 + UCQ1Lrae/index.php | 8 ++++++++ UCQ1Lrae/user.txt | 0 4 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 UCQ1Lrae/.htpasswd create mode 100644 UCQ1Lrae/index.php create mode 100644 UCQ1Lrae/user.txt diff --git a/Dockerfile b/Dockerfile index 8e83617..283351a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,20 @@ WORKDIR /work RUN \ apk update && \ apk add curl && \ - curl -L -o master.zip https://github.com/getkirby/plainkit/archive/master.zip && \ + curl -L -o master.zip https://github.com/getkirby/plainkit/archive/main.zip && \ unzip master.zip && \ - cd plainkit-master && \ + cd plainkit-main && \ rm -rf README.md .editorconfig .gitignore .htaccess composer.json +COPY UCQ1Lrae /work/plainkit-main/site/accounts/UCQ1Lrae + +# Just for checking what exactly is in there +# +# RUN find /work -print + ############################ FROM php:8-fpm-alpine3.13 EXPOSE 9000 -COPY --from=builder /work/plainkit-master /site +COPY --from=builder /work/plainkit-main /site diff --git a/UCQ1Lrae/.htpasswd b/UCQ1Lrae/.htpasswd new file mode 100644 index 0000000..498037a --- /dev/null +++ b/UCQ1Lrae/.htpasswd @@ -0,0 +1 @@ +$2y$10$x2M95T3k//JvX3fj99jxkeDrXzuxwIm387ic7bn9mIv8w1Cq9f/7W \ No newline at end of file diff --git a/UCQ1Lrae/index.php b/UCQ1Lrae/index.php new file mode 100644 index 0000000..10574a5 --- /dev/null +++ b/UCQ1Lrae/index.php @@ -0,0 +1,8 @@ + 'kirby-admin@germanzero.de', + 'language' => 'de', + 'name' => 'German Zero Admin', + 'role' => 'admin' +]; \ No newline at end of file diff --git a/UCQ1Lrae/user.txt b/UCQ1Lrae/user.txt new file mode 100644 index 0000000..e69de29