Update gitea

- rename the files
- fully qualify base
- add compose build
This commit is contained in:
2026-04-13 17:10:29 +03:00
parent 6333218d66
commit 99bfb63845
3 changed files with 6 additions and 23 deletions
-20
View File
@@ -1,20 +0,0 @@
# syntax=docker/dockerfile:1
# gentoo-gitea
FROM gentoo-base-gnu 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"]
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
# gentoo-gitea
FROM gentoo-base-busybox AS builder
FROM registry.ceamac.ro/gentoo-base-busybox AS builder
WORKDIR /workdir
COPY --exclude=repos --exclude=bin . .
@@ -15,6 +15,6 @@ WORKDIR /
EXPOSE 3000 32799
VOLUME ["/etc/gitea", "/var/lib/gitea"]
COPY --from=builder /mnt/gentoo /
RUN rm -fR /var/db
RUN tar c -j -f /var/db/pkg.tar.bz2 -C /var/db/pkg . && rm -fR /var/db/pkg
USER git:git
CMD ["/usr/bin/gitea", "web"]
+4 -1
View File
@@ -3,7 +3,7 @@ services:
image: registry.ceamac.ro/gentoo-gitea
restart: always
#user: 196:196
userns: nomap
#userns: nomap
ports:
- "127.0.0.1:3000:3000/tcp"
- "127.0.0.1:32799:32799/tcp"
@@ -16,6 +16,9 @@ services:
source: /var/lib/gitea
target: /var/lib/gitea
read_only: false
build:
dockerfile: gitea.Dockerfile
context: .
#command: /bin/bash
#stdin_open: true