Compare commits

..

4 Commits

  1. 27
      Dockerfile
  2. 13
      templates/explore/users.tmpl

27
Dockerfile

@ -2,23 +2,10 @@ FROM registry.sindominio.net/debian as builder
ARG TAGS="bindata"
RUN apt-get update && \
apt-get install -y --no-install-recommends make build-essential jq gnupg curl nodejs npm wget
## Install Go 1.17 via Go web
RUN wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz && \
echo "dab7d9c34361dc21ec237d584590d72500652e7c909bf082758fb63064fca0ef go1.17.1.linux-amd64.tar.gz" > go.checksum && \
sha256sum -c go.checksum && \
rm -rf /usr/local/go && \
rm -rf /usr/bin/go && \
tar -C /usr/local -xzf go1.17.1.linux-amd64.tar.gz && \
export PATH=/usr/local/go/bin:$PATH
RUN ln -s /usr/local/go/bin/go /usr/bin/go
# Install Gitea
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends -t buster-backports \
golang nodejs npm make build-essential jq gnupg curl
COPY gitea-key.asc /key.asc
RUN TGZ=`curl -s https://api.github.com/repos/go-gitea/gitea/releases/latest |jq -r '.assets[].browser_download_url' | grep 'src.*\.tar\.gz$'` && \
@ -34,7 +21,6 @@ WORKDIR /gitea
# Don't clean the prebuild javascript assets
# npm fails to build them
#RUN make clean-all build
RUN make build
FROM registry.sindominio.net/debian
@ -47,6 +33,11 @@ COPY --from=builder /gitea/gitea /app/gitea/gitea
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea && \
ln -s /data /app/gitea/data
# Copy mods on templates
# https://docs.gitea.io/en-us/customizing-gitea/#customizing-gitea-pages-and-resources
RUN mkdir -p /data/templates/explore/
COPY templates/explore/users.tmpl /data/templates/explore/users.tmpl
VOLUME ["/data"]
ENV GITEA_CUSTOM /data
ENV HOME /data

13
templates/explore/users.tmpl

@ -0,0 +1,13 @@
{{template "base/head" .}}
<div class="page-content explore users">
{{template "explore/navbar" .}}
<div class="ui container">
{{template "explore/search" .}}
<div class="ui user list">
<div>{{$.i18n.Tr "explore.user_no_results"}}</div>
</div>
</div>
</div>
{{template "base/footer" .}}
Loading…
Cancel
Save