coreos-home-server/config/service/git/Containerfile
Alex Palaistras d9f675817e First public release for CoreOS Home Server
This contains the culmination of work done privately for a few months,
and is intended to be a solid basis for other peoples' experimentations
with setting up single-node, home-server setups using Fedora CoreOS.
2021-03-20 16:32:42 +00:00

15 lines
418 B
Docker

FROM docker.io/debian:stable-slim
RUN apt-get update -y && \
apt-get install -y --no-install-recommends git openssh-server ca-certificates
RUN addgroup --system --gid 10000 git
RUN adduser --system --uid 10000 --ingroup git --shell /usr/bin/git-shell --home /home/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"]