coreos-home-server/config/service/git/Containerfile
Alex Palaistras 4309b3d093 Consolidate use of apt-get update in containers
We no longer perform `apt-get upgrade`, and make indentation consistent
between different Containerfile definitions.
2021-03-21 00:16:51 +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 \
ca-certificates git openssh-server
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"]