Initial commit
First container (for gitea)
This commit is contained in:
19
Dockerfile.gitea
Normal file
19
Dockerfile.gitea
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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 /
|
||||
USER git:git
|
||||
CMD ["/usr/bin/gitea", "web"]
|
||||
Reference in New Issue
Block a user