Last active
May 1, 2019 00:31
-
-
Save rubyon/9c634ec9edae97040091f1931386161b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
MAINTAINER 1.0 [email protected] | |
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