Add VOLUME to preserve config across container recreations (#1235)

This commit is contained in:
Marrrrrrrrry
2025-10-06 08:05:00 +08:00
committed by GitHub
parent b61b7a12dc
commit e099304948
4 changed files with 12 additions and 0 deletions

View File

@@ -25,6 +25,9 @@ FROM scratch
COPY --from=builder /beszel /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
# Ensure data persistence across container recreations
VOLUME ["/beszel_data"]
EXPOSE 8090
ENTRYPOINT [ "/beszel" ]