Compare commits
4 Commits
5c42d9f22a
...
612cfd8ddd
| Author | SHA1 | Date | |
|---|---|---|---|
| 612cfd8ddd | |||
| 2f14c01c40 | |||
| 718f21b04e | |||
| 6f8ff6d63c |
@@ -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"]
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
gitea:
|
gitea:
|
||||||
image: gentoo-gitea
|
image: registry.ceamac.ro/gentoo-gitea
|
||||||
restart: always
|
restart: always
|
||||||
#user: 196:196
|
#user: 196:196
|
||||||
userns: nomap
|
userns: nomap
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
COMMON_FLAGS="-O2 -pipe"
|
COMMON_FLAGS="-O2 -pipe -march=x86-64-v3"
|
||||||
CFLAGS="${COMMON_FLAGS}"
|
CFLAGS="${COMMON_FLAGS}"
|
||||||
CXXFLAGS="${COMMON_FLAGS}"
|
CXXFLAGS="${COMMON_FLAGS}"
|
||||||
FCFLAGS="${COMMON_FLAGS}"
|
FCFLAGS="${COMMON_FLAGS}"
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ mkdir -p "${imageroot}"/var/db/repos
|
|||||||
mkdir -p "${imageroot}"/var/tmp
|
mkdir -p "${imageroot}"/var/tmp
|
||||||
[[ -e ${makeconf} ]] && cp "${makeconf}" "${imageroot}"/etc/portage/make.conf
|
[[ -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 [root]
|
||||||
addrepoconfs() {
|
addrepoconfs() {
|
||||||
repoconf="${imageroot}"/etc/portage/repos.conf/gentoo.conf
|
repoconf="${imageroot}"/etc/portage/repos.conf/gentoo.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user