feat: add Docker first-start admin bootstrap
Rust CI / Test & Quality Checks (push) Canceled after 0s
Rust CI / Build Docker Image (push) Canceled after 0s

This commit is contained in:
thakares committed 2026-08-12 14:13:09 +05:30
1 parent 25577b4b83
commit 8e0bcbe580
9 files changed
+152 -6

No files matched your search

+4 -2
View File
@@ -51,6 +51,7 @@ RUN groupadd --gid 1000 bzod && \
# Application binary
COPY --from=builder /app/target/release/bzod /usr/local/bin/bzod
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
# Application-owned immutable assets
COPY --from=builder /app/templates /app/templates
@@ -68,7 +69,8 @@ RUN mkdir -p \
/app/images \
/app/templates \
/app/www \
/usr/local/bin/bzod
/usr/local/bin/bzod \
/usr/local/bin/docker-entrypoint.sh
# Runtime configuration
ENV DATA_DIR=/app/data \
@@ -89,5 +91,5 @@ HEALTHCHECK \
USER bzod
ENTRYPOINT ["/usr/local/bin/bzod"]
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["serve"]