Dockerfile 534 B

12345678910111213141516171819202122
  1. FROM alpine:3.10
  2. RUN adduser -S postsrsd \
  3. && apk add --no-cache postsrsd \
  4. && mkdir -p /etc/postsrsd/secrets \
  5. && chown postsrsd /etc/postsrsd/secrets
  6. USER postsrsd
  7. VOLUME /etc/postsrsd/secrets
  8. # https://github.com/roehling/postsrsd/blob/1.6/postsrsd.c#L342
  9. ENV SRS_DOMAIN change-me.tld
  10. ENV SRS_SECRET /etc/postsrsd/secrets/list
  11. # forward SRS lookup
  12. EXPOSE 10001/tcp
  13. # reverse SRS lookup
  14. EXPOSE 10002/tcp
  15. # > Cannot open file with secret: /etc/postsrsd/secrets/list
  16. CMD touch "$SRS_SECRET" && postsrsd -l0.0.0.0 -e