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
| var Q = require('q'); | |
| var p = Q(2).then((a)=>{return 15}).finally(function (a){ | |
| console.log('finally:' + JSON.stringify(arguments)); | |
| }) | |
| .then((afterFinally)=>{console.log(`after finally ${JSON.stringify(afterFinally)}`)}) | |
| .catch((e)=>{console.log(`exception ${e}`)}); | |
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
| # Example Dockerfile | |
| FROM hello-world |
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 debian:wheezy | |
| RUN useradd --create-home user | |
| ENV SKYPE_URL http://download.skype.com/linux/skype-debian_4.3.0.37-1_i386.deb | |
| RUN dpkg --add-architecture i386 \ | |
| && apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* \ | |
| && wget "${SKYPE_URL}" -O skype.deb \ | |
| && apt-get purge -y --auto-remove wget \ |
NewerOlder