Skip to content

Instantly share code, notes, and snippets.

@rubyon
Last active May 1, 2019 00:31
Show Gist options
  • Save rubyon/9c634ec9edae97040091f1931386161b to your computer and use it in GitHub Desktop.
Save rubyon/9c634ec9edae97040091f1931386161b to your computer and use it in GitHub Desktop.
FROM alpine
MAINTAINER 1.0 rubyon@me.com
ENV USER_ID="userid" AUTH_CODE="authcode"
RUN echo "dnsever-ddns-updater id \"\$1\" && dnsever-ddns-updater auth_code \"\$2\" && dnsever-ddns-updater start && /bin/sh" > start.sh
RUN chmod +x start.sh
RUN apk update
RUN apk add nodejs
RUN npm install -g pm2 dnsever-ddns-updater
CMD ["/bin/sh","-c","/start.sh $USER_ID $AUTH_CODE"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment