mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
e467b89e7f
This commit adds a new service for Gitea, exposing HTTP and SSH ports by default (SSH over 7920), and accepting authentication via the local SMTP server. No users are otherwise created by default, and administration is expected to happen either via CLI, or via a custom admin user.
21 lines
701 B
Docker
21 lines
701 B
Docker
FROM docker.io/debian:bullseye-slim
|
|
ARG VERSION=1.16.9
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y && \
|
|
apt-get install -y --no-install-recommends curl ca-certificates gettext gosu \
|
|
git openssh-client gnupg
|
|
|
|
ENV PACKAGE_URL https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
|
|
RUN curl -L -o /usr/bin/gitea ${PACKAGE_URL} && chmod +x /usr/bin/gitea
|
|
|
|
RUN apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false curl
|
|
|
|
RUN addgroup --system --gid 10000 git
|
|
RUN adduser --system --uid 10000 --ingroup git --home /var/lib/gitea git
|
|
|
|
COPY container/config /etc/gitea
|
|
COPY container/run-gitea /run-gitea
|
|
|
|
EXPOSE 8080 7920
|
|
ENTRYPOINT ["/run-gitea"]
|