mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
e971bb11cc
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.
15 lines
423 B
Docker
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"]
|