coreos-home-server/service/gitea/Containerfile

21 lines
701 B
Plaintext
Raw Normal View History

FROM docker.io/debian:bullseye-slim
2023-04-26 20:59:57 +00:00
ARG VERSION=1.19.1
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"]