Created
March 2, 2016 19:20
-
-
Save newswim/4541bb26ac570aba8043 to your computer and use it in GitHub Desktop.
Docker build
This file contains 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
#### Dockerfile | |
# Get image | |
FROM node:0.10.40 | |
# Install dependencies | |
RUN npm i roots -g | |
WORKDIR /opt/app | |
ENTRYPOINT /usr/local/bin/roots | |
CMD ["compile"] | |
####### | |
sending build context to Docker daemon 76.63 MB | |
Step 1 : FROM node:0.10.42-slim | |
0.10.42-slim: Pulling from library/node | |
7268d8f794c4: Pull complete | |
a3ed95caeb02: Pull complete | |
a8c4736f173e: Pull complete | |
bbb30fda2816: Pull complete | |
Digest: sha256:bef176571a009ec49f00a8b792aaf4f2833adba4507db09de02f5f7b03ebbef8 | |
Status: Downloaded newer image for node:0.10.42-slim | |
---> 55179f8027de | |
Step 2 : RUN npm i roots -g | |
---> Running in 1b1aa6c8e196 | |
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible. | |
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git://github.com/jenius/node-github.git /root/.npm/_git-remotes/git-github-com-jenius-node-github-git-cefba6ce: undefined | |
npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror git://github.com/jenius/node-github.git /root/.npm/_git-remotes/git-github-com-jenius-node-github-git-cefba6ce: undefined | |
npm WARN optional dep failed, continuing fsevents@1.0.8 | |
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.42","npm":"2.14.1"}) | |
npm WARN engine deep-extend@0.4.1: wanted: {"node":">=0.12.0","iojs":">=1.0.0"} (current: {"node":"0.10.42","npm":"2.14.1"}) | |
npm WARN optional dep failed, continuing fsevents@1.0.8 | |
> bufferutil@1.2.1 install /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil | |
> node-gyp rebuild | |
gyp ERR! configure error | |
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. | |
gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:14) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:47:11 | |
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:25) | |
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16 | |
gyp ERR! stack at Object.oncomplete (fs.js:108:15) | |
gyp ERR! System Linux 4.1.18-boot2docker | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil | |
gyp ERR! node -v v0.10.42 | |
gyp ERR! node-gyp -v v2.0.2 | |
gyp ERR! not ok | |
> utf-8-validate@1.2.1 install /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate | |
> node-gyp rebuild | |
gyp ERR! configure error | |
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. | |
gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:14) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:47:11 | |
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:25) | |
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16 | |
gyp ERR! stack at Object.oncomplete (fs.js:108:15) | |
gyp ERR! System Linux 4.1.18-boot2docker | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate | |
gyp ERR! node -v v0.10.42 | |
gyp ERR! node-gyp -v v2.0.2 | |
gyp ERR! not ok | |
npm WARN optional dep failed, continuing bufferutil@1.2.1 | |
npm WARN optional dep failed, continuing utf-8-validate@1.2.1 | |
> utf-8-validate@1.2.1 install /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate | |
> node-gyp rebuild | |
gyp ERR! configure error | |
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. | |
gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:14) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:47:11 | |
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:25) | |
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16 | |
gyp ERR! stack at Object.oncomplete (fs.js:108:15) | |
gyp ERR! System Linux 4.1.18-boot2docker | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate | |
gyp ERR! node -v v0.10.42 | |
gyp ERR! node-gyp -v v2.0.2 | |
gyp ERR! not ok | |
> bufferutil@1.2.1 install /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil | |
> node-gyp rebuild | |
gyp ERR! configure error | |
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. | |
gyp ERR! stack at failNoPython (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:14) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:47:11 | |
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:72:25) | |
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:75:29) | |
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:83:16 | |
gyp ERR! stack at Object.oncomplete (fs.js:108:15) | |
gyp ERR! System Linux 4.1.18-boot2docker | |
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" | |
gyp ERR! cwd /usr/local/lib/node_modules/roots/node_modules/browser-sync/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil | |
gyp ERR! node -v v0.10.42 | |
gyp ERR! node-gyp -v v2.0.2 | |
gyp ERR! not ok | |
npm WARN optional dep failed, continuing utf-8-validate@1.2.1 | |
npm WARN optional dep failed, continuing bufferutil@1.2.1 | |
npm ERR! Linux 4.1.18-boot2docker | |
npm ERR! argv "node" "/usr/local/bin/npm" "i" "roots" "-g" | |
npm ERR! node v0.10.42 | |
npm ERR! npm v2.14.1 | |
npm ERR! code ENOGIT | |
npm ERR! not found: git | |
npm ERR! | |
npm ERR! Failed using git. | |
npm ERR! This is most likely not a problem with npm itself. | |
npm ERR! Please check if you have git installed and in your PATH. | |
npm ERR! Please include the following file with any support request: | |
npm ERR! /npm-debug.log | |
The command '/bin/sh -c npm i roots -g' returned a non-zero code: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment