Remove /var/db

We don't need /var/db in leaf containers, and it can grow quite big.
This commit is contained in:
2026-01-25 14:22:53 +02:00
parent 2f14c01c40
commit 612cfd8ddd
2 changed files with 2 additions and 0 deletions

View File

@@ -15,5 +15,6 @@ WORKDIR /
EXPOSE 3000 32799
VOLUME ["/etc/gitea", "/var/lib/gitea"]
COPY --from=builder /mnt/gentoo /
RUN rm -fR /var/db
USER git:git
CMD ["/usr/bin/gitea", "web"]