mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
21 lines
701 B
Docker
21 lines
701 B
Docker
FROM docker.io/debian:bullseye-slim
|
|
ARG VERSION=1.17.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"]
|