Remove /var/db
We don't need /var/db in leaf containers, and it can grow quite big.
This commit is contained in:
@@ -15,5 +15,6 @@ WORKDIR /
|
|||||||
EXPOSE 3000 32799
|
EXPOSE 3000 32799
|
||||||
VOLUME ["/etc/gitea", "/var/lib/gitea"]
|
VOLUME ["/etc/gitea", "/var/lib/gitea"]
|
||||||
COPY --from=builder /mnt/gentoo /
|
COPY --from=builder /mnt/gentoo /
|
||||||
|
RUN rm -fR /var/db
|
||||||
USER git:git
|
USER git:git
|
||||||
CMD ["/usr/bin/gitea", "web"]
|
CMD ["/usr/bin/gitea", "web"]
|
||||||
|
|||||||
@@ -7,4 +7,5 @@ RUN bin/gentoo-emerge -1c --with-bdeps=n
|
|||||||
FROM scratch
|
FROM scratch
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
COPY --from=builder /mnt/gentoo /
|
COPY --from=builder /mnt/gentoo /
|
||||||
|
RUN rm -fR /var/db
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|||||||
Reference in New Issue
Block a user