Hi,
I hacked a small Dockerfile for relaysrv, maybe someone will be happy because of this. Here it is:
# Build:
# docker build -t syncthing-relaysrv .
#
# Run:
# docker run --name=syncthing-relaysrv -p 22067:22067 syncthing-relaysrv
# docker run --name=syncthing-relaysrv -p 22067:22067 -e "PROVIDEDBY=stone" syncthing-relaysrv
FROM ubuntu:15.10
EXPOSE 22067
RUN apt-get update && apt-get -y install golang \
git
RUN useradd -s /bin/bash -m syncthing
USER syncthing
WORKDIR /home/syncthing
ENV GOPATH /home/syncthing/go
RUN go get github.com/syncthing/relaysrv
CMD /home/syncthing/go/bin/relaysrv --debug -provided-by "$PROVIDEDBY"
Cheers,
Stone
EDITED: to contain the ProvidedBy string as an option.