2023-10-20 09:36:54 +02:00
|
|
|
FROM cloudron/base:4.2.0@sha256:46da2fffb36353ef714f97ae8e962bd2c212ca091108d768ba473078319a47f4
|
2017-06-02 10:32:24 +02:00
|
|
|
|
2015-04-28 19:29:12 -07:00
|
|
|
RUN apt-get update && \
|
2021-12-03 10:05:28 -08:00
|
|
|
apt-get install -y openssh-server git asciidoctor pandoc && \
|
2016-05-03 22:49:59 -07:00
|
|
|
rm -rf /etc/ssh_host_* && \
|
2015-04-28 19:29:12 -07:00
|
|
|
rm -r /var/cache/apt /var/lib/apt/lists
|
2021-12-03 03:06:00 +00:00
|
|
|
RUN pip3 install jupyter
|
2015-04-28 17:12:16 -07:00
|
|
|
|
2015-04-28 19:29:12 -07:00
|
|
|
ADD supervisor/ /etc/supervisor/conf.d/
|
2015-04-28 17:12:16 -07:00
|
|
|
|
2017-06-02 10:32:24 +02:00
|
|
|
RUN adduser --disabled-login --gecos 'Gitea' git
|
2016-02-21 18:52:08 -08:00
|
|
|
# by default, git account is created as inactive which prevents login via openssh
|
|
|
|
# https://github.com/gitlabhq/gitlabhq/issues/5304
|
|
|
|
RUN passwd -d git
|
|
|
|
|
2017-06-02 10:32:24 +02:00
|
|
|
RUN mkdir -p /home/git/gitea
|
2019-06-04 17:14:29 -07:00
|
|
|
WORKDIR /home/git
|
2021-03-04 17:08:50 +01:00
|
|
|
|
2022-11-08 16:30:14 +01:00
|
|
|
# for autosign feature
|
|
|
|
ENV GNUPGHOME="/app/data/gnupg"
|
|
|
|
|
2024-10-09 07:11:32 +00:00
|
|
|
# renovate: datasource=github-releases depName=go-gitea/gitea versioning=semver extractVersion=^v(?<version>.+)$
|
2025-01-09 08:44:12 +00:00
|
|
|
ARG GITEA_VERSION=1.23.0
|
2021-03-04 17:08:50 +01:00
|
|
|
|
2024-10-09 07:11:32 +00:00
|
|
|
RUN curl -L https://dl.gitea.io/gitea/${GITEA_VERSION}/gitea-${GITEA_VERSION}-linux-amd64 -o /home/git/gitea/gitea \
|
2017-06-02 10:32:24 +02:00
|
|
|
&& chmod +x /home/git/gitea/gitea
|
2015-04-26 12:45:32 -07:00
|
|
|
|
2015-10-13 15:27:09 -07:00
|
|
|
# setup config paths
|
2016-02-21 18:52:08 -08:00
|
|
|
ADD app.ini.template /home/git/app.ini.template
|
2015-10-13 15:27:09 -07:00
|
|
|
|
|
|
|
# setup log paths
|
2017-06-02 10:32:24 +02:00
|
|
|
RUN mkdir -p /run/gitea && chown -R git:git /run/gitea
|
|
|
|
RUN sed -e 's,^logfile=.*$,logfile=/run/gitea/supervisord.log,' -i /etc/supervisor/supervisord.conf
|
2015-10-13 15:27:09 -07:00
|
|
|
|
2016-02-21 18:52:08 -08:00
|
|
|
RUN ln -s /app/data/ssh /home/git/.ssh
|
|
|
|
RUN ln -s /app/data/gitconfig /home/git/.gitconfig
|
2015-10-13 16:12:06 -07:00
|
|
|
|
2016-02-21 18:52:08 -08:00
|
|
|
ADD start.sh /home/git/start.sh
|
2015-04-26 12:45:32 -07:00
|
|
|
|
2018-10-10 20:09:26 -07:00
|
|
|
COPY sshd_config /etc/ssh/sshd_config
|
2015-04-28 19:29:12 -07:00
|
|
|
|
2016-02-21 18:52:08 -08:00
|
|
|
CMD [ "/home/git/start.sh" ]
|
2015-04-26 12:45:32 -07:00
|
|
|
|