coreos-home-server/config/service/git/Containerfile
Alex Palaistras e971bb11cc Update images and applications to latest versions
This includes setting the Debian base image to a specific release rather
than the generic `stable` version, which can cause issues when assuming
package versions or external repository status.
2021-08-27 19:20:58 +01:00

15 lines
423 B
Docker

FROM docker.io/debian:bullseye-slim
RUN apt-get update -y && apt-get install -y --no-install-recommends \
ca-certificates git openssh-server
RUN addgroup --system --gid 10000 git
RUN adduser --system --uid 10000 --ingroup git --shell /usr/bin/git-shell --home /var/lib/git git
RUN mkdir -p /var/run/sshd
COPY container/config /etc/ssh
COPY container/run-git-server /run-git-server
EXPOSE 22
CMD ["/run-git-server"]