Compare commits
4 Commits
5c42d9f22a
...
612cfd8ddd
| Author | SHA1 | Date | |
|---|---|---|---|
| 612cfd8ddd | |||
| 2f14c01c40 | |||
| 718f21b04e | |||
| 6f8ff6d63c |
@@ -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"]
|
||||
|
||||
@@ -7,4 +7,5 @@ RUN bin/gentoo-emerge -1c --with-bdeps=n
|
||||
FROM scratch
|
||||
WORKDIR /
|
||||
COPY --from=builder /mnt/gentoo /
|
||||
RUN rm -fR /var/db
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
gitea:
|
||||
image: gentoo-gitea
|
||||
image: registry.ceamac.ro/gentoo-gitea
|
||||
restart: always
|
||||
#user: 196:196
|
||||
userns: nomap
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
COMMON_FLAGS="-O2 -pipe"
|
||||
COMMON_FLAGS="-O2 -pipe -march=x86-64-v3"
|
||||
CFLAGS="${COMMON_FLAGS}"
|
||||
CXXFLAGS="${COMMON_FLAGS}"
|
||||
FCFLAGS="${COMMON_FLAGS}"
|
||||
|
||||
@@ -77,6 +77,9 @@ mkdir -p "${imageroot}"/var/db/repos
|
||||
mkdir -p "${imageroot}"/var/tmp
|
||||
[[ -e ${makeconf} ]] && cp "${makeconf}" "${imageroot}"/etc/portage/make.conf
|
||||
|
||||
mkdir -p "${imageroot}"/etc/portage/env/sys-apps
|
||||
echo 'CFLAGS="${CFLAGS} -Oz"' >> "${imageroot}"/etc/portage/env/sys-apps/busybox
|
||||
|
||||
# addrepoconfs [root]
|
||||
addrepoconfs() {
|
||||
repoconf="${imageroot}"/etc/portage/repos.conf/gentoo.conf
|
||||
|
||||
Reference in New Issue
Block a user