Files
containers/Dockerfile.busybox.gitea
Viorel 07d4bec762 Base gitea on busybox glibc image
Build gitea from busybox glibc image.
It gets a little smaller (230M instead of 270M).
Added bash, gitea warns if not found.
2026-02-09 12:26:04 +02:00

21 lines
541 B
Docker

# syntax=docker/dockerfile:1
# gentoo-gitea
FROM gentoo-base-busybox AS builder
WORKDIR /workdir
COPY --exclude=repos --exclude=bin . .
RUN --mount=type=cache,target=/workdir/cache,sharing=locked <<-EOF
echo 'acct-user/git gitea -git' >> /etc/portage/package.use/gitea
emerge -1v --quiet-build=y acct-user/git
/bin/bash src/setup-gitea.sh /mnt/gentoo -j8
EOF
FROM scratch
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"]