DEPRECATED: Use the community maintained https://tangled.sh/@tangled.sh/knot-docker instead

support PRs by setting the git username/email so git merge works

Changed files
+6 -1
+3 -1
Dockerfile
···
COPY ssh_host_ed25519_key.pub /etc/ssh
RUN chmod 600 /etc/ssh/ssh_host_ed25519_key
RUN chmod 644 /etc/ssh/ssh_host_ed25519_key.pub
-
CMD ["/bin/sh", "-c", "passwd -u git && chown -R git:git /home/git && /usr/sbin/sshd && su-exec git knotserver"]
+
COPY gitconfig /home/git/.gitconfig
+
RUN passwd -u git
+
CMD ["/bin/sh", "-c", "chown -R git:git /home/git && /usr/sbin/sshd && su-exec git knotserver"]
+3
gitconfig
···
+
[user]
+
name = Tangled
+
email = noreply@tangled.sh