Prepare LaySite 1.4.7 Docker administrator bootstrap

This commit is contained in:
2026-11-28 00:20:55 +08:00
parent 2a8acc3368
commit aa3ee83d58
5 changed files with 65 additions and 7 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ ENV LAYSITE_LISTEN=http://0.0.0.0:8787
VOLUME ["/opt/laysite/storage"]
EXPOSE 8787
USER 10001:10001
CMD ["sh", "-c", "php bin/install.php && exec php start.php start"]
CMD ["sh", "-c", "php bin/install.php && unset LAYSITE_ADMIN_EMAIL LAYSITE_ADMIN_PASSWORD && exec php start.php start"]