Skip to content

Instantly share code, notes, and snippets.

@IlyaSemenov
Last active February 21, 2018 05:42
Show Gist options
  • Save IlyaSemenov/88bc27acdd4131aabd7bba901940d7a7 to your computer and use it in GitHub Desktop.
Save IlyaSemenov/88bc27acdd4131aabd7bba901940d7a7 to your computer and use it in GitHub Desktop.
Docker susy on alpine log for https://github.com/sass/node-sass/issues/1879
~/tmp/susy cat Dockerfile 52.8s < Wed Feb 21 12:38:45 2018
FROM alpine:3.5
RUN apk add --no-cache nodejs
RUN npm i node-sass@4.5.0 susy@2.2.12
RUN node_modules/.bin/node-sass node_modules/susy/sass/_susy.scss
~/tmp/susy docker build . 2250ms < Wed Feb 21 12:37:51 2018
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM alpine:3.5
---> 6c6084ed97e5
Step 2/4 : RUN apk add --no-cache nodejs
---> Running in 91ef765c4a1c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
(1/8) Installing ca-certificates (20161130-r1)
(2/8) Installing libcrypto1.0 (1.0.2n-r0)
(3/8) Installing libgcc (6.2.1-r1)
(4/8) Installing http-parser (2.7.1-r0)
(5/8) Installing libssl1.0 (1.0.2n-r0)
(6/8) Installing libstdc++ (6.2.1-r1)
(7/8) Installing libuv (1.9.1-r0)
(8/8) Installing nodejs (6.9.5-r1)
Executing busybox-1.25.1-r1.trigger
Executing ca-certificates-20161130-r1.trigger
OK: 43 MiB in 19 packages
Removing intermediate container 91ef765c4a1c
---> b1afd6fa1959
Step 3/4 : RUN npm i node-sass@4.5.0 susy@2.2.12
---> Running in 3a798b0da35f
> node-sass@4.5.0 install /node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/linux_musl-x64-48_binding.node
Download complete
Binary saved to /node_modules/node-sass/vendor/linux_musl-x64-48/binding.node
Caching binary to /root/.npm/node-sass/4.5.0/linux_musl-x64-48_binding.node
> node-sass@4.5.0 postinstall /node_modules/node-sass
> node scripts/build.js
Binary found at /node_modules/node-sass/vendor/linux_musl-x64-48/binding.node
Testing binary
Binary is fine
/
+-- node-sass@4.5.0
| +-- async-foreach@0.1.3
| +-- chalk@1.1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1.0.5
| | +-- has-ansi@2.0.0
| | | `-- ansi-regex@2.1.1
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| +-- cross-spawn@3.0.1
| | +-- lru-cache@4.1.1
| | | +-- pseudomap@1.0.2
| | | `-- yallist@2.1.2
| | `-- which@1.3.0
| | `-- isexe@2.0.0
| +-- gaze@1.1.2
| | `-- globule@1.2.0
| +-- get-stdin@4.0.1
| +-- glob@7.1.2
| | +-- fs.realpath@1.0.0
| | +-- inflight@1.0.6
| | | `-- wrappy@1.0.2
| | +-- inherits@2.0.3
| | +-- minimatch@3.0.4
| | | `-- brace-expansion@1.1.11
| | | +-- balanced-match@1.0.0
| | | `-- concat-map@0.0.1
| | +-- once@1.4.0
| | `-- path-is-absolute@1.0.1
| +-- in-publish@2.0.0
| +-- lodash.assign@4.2.0
| +-- lodash.clonedeep@4.5.0
| +-- lodash.mergewith@4.6.1
| +-- meow@3.7.0
| | +-- camelcase-keys@2.1.0
| | | `-- camelcase@2.1.1
| | +-- decamelize@1.2.0
| | +-- loud-rejection@1.6.0
| | | +-- currently-unhandled@0.4.1
| | | | `-- array-find-index@1.0.2
| | | `-- signal-exit@3.0.2
| | +-- map-obj@1.0.1
| | +-- minimist@1.2.0
| | +-- normalize-package-data@2.4.0
| | | +-- hosted-git-info@2.5.0
| | | +-- is-builtin-module@1.0.0
| | | | `-- builtin-modules@1.1.1
| | | +-- semver@5.5.0
| | | `-- validate-npm-package-license@3.0.1
| | | +-- spdx-correct@1.0.2
| | | | `-- spdx-license-ids@1.2.2
| | | `-- spdx-expression-parse@1.0.4
| | +-- object-assign@4.1.1
| | +-- read-pkg-up@1.0.1
| | | +-- find-up@1.1.2
| | | | +-- path-exists@2.1.0
| | | | `-- pinkie-promise@2.0.1
| | | | `-- pinkie@2.0.4
| | | `-- read-pkg@1.1.0
| | | +-- load-json-file@1.1.0
| | | | +-- parse-json@2.2.0
| | | | | `-- error-ex@1.3.1
| | | | | `-- is-arrayish@0.2.1
| | | | +-- pify@2.3.0
| | | | `-- strip-bom@2.0.0
| | | | `-- is-utf8@0.2.1
| | | `-- path-type@1.1.0
| | +-- redent@1.0.0
| | | +-- indent-string@2.1.0
| | | | `-- repeating@2.0.1
| | | | `-- is-finite@1.0.2
| | | `-- strip-indent@1.0.1
| | `-- trim-newlines@1.0.0
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| +-- nan@2.8.0
| +-- node-gyp@3.6.2
| | +-- fstream@1.0.11
| | +-- graceful-fs@4.1.11
| | +-- nopt@3.0.6
| | | `-- abbrev@1.1.1
| | +-- osenv@0.1.5
| | | +-- os-homedir@1.0.2
| | | `-- os-tmpdir@1.0.2
| | +-- rimraf@2.6.2
| | +-- semver@5.3.0
| | `-- tar@2.2.1
| | `-- block-stream@0.0.9
| +-- npmlog@4.1.2
| | +-- are-we-there-yet@1.1.4
| | | `-- delegates@1.0.0
| | +-- console-control-strings@1.1.0
| | +-- gauge@2.7.4
| | | +-- aproba@1.2.0
| | | +-- has-unicode@2.0.1
| | | +-- string-width@1.0.2
| | | | +-- code-point-at@1.1.0
| | | | `-- is-fullwidth-code-point@1.0.0
| | | | `-- number-is-nan@1.0.1
| | | `-- wide-align@1.1.2
| | `-- set-blocking@2.0.0
| +-- request@2.83.0
| | +-- aws-sign2@0.7.0
| | +-- aws4@1.6.0
| | +-- caseless@0.12.0
| | +-- combined-stream@1.0.6
| | | `-- delayed-stream@1.0.0
| | +-- extend@3.0.1
| | +-- forever-agent@0.6.1
| | +-- form-data@2.3.2
| | | `-- asynckit@0.4.0
| | +-- har-validator@5.0.3
| | | +-- ajv@5.5.2
| | | | +-- co@4.6.0
| | | | +-- fast-deep-equal@1.0.0
| | | | +-- fast-json-stable-stringify@2.0.0
| | | | `-- json-schema-traverse@0.3.1
| | | `-- har-schema@2.0.0
| | +-- hawk@6.0.2
| | | +-- boom@4.3.1
| | | +-- cryptiles@3.1.2
| | | | `-- boom@5.2.0
| | | +-- hoek@4.2.1
| | | `-- sntp@2.1.0
| | +-- http-signature@1.2.0
| | | +-- assert-plus@1.0.0
| | | +-- jsprim@1.4.1
| | | | +-- extsprintf@1.3.0
| | | | +-- json-schema@0.2.3
| | | | `-- verror@1.10.0
| | | `-- sshpk@1.13.1
| | | +-- asn1@0.2.3
| | | +-- bcrypt-pbkdf@1.0.1
| | | +-- dashdash@1.14.1
| | | +-- ecc-jsbn@0.1.1
| | | +-- getpass@0.1.7
| | | +-- jsbn@0.1.1
| | | `-- tweetnacl@0.14.5
| | +-- is-typedarray@1.0.0
| | +-- isstream@0.1.2
| | +-- json-stringify-safe@5.0.1
| | +-- mime-types@2.1.18
| | | `-- mime-db@1.33.0
| | +-- oauth-sign@0.8.2
| | +-- performance-now@2.1.0
| | +-- qs@6.5.1
| | +-- safe-buffer@5.1.1
| | +-- stringstream@0.0.5
| | +-- tough-cookie@2.3.3
| | | `-- punycode@1.4.1
| | +-- tunnel-agent@0.6.0
| | `-- uuid@3.2.1
| +-- sass-graph@2.2.4
| | +-- lodash@4.17.5
| | +-- scss-tokenizer@0.2.3
| | | +-- js-base64@2.4.3
| | | `-- source-map@0.4.4
| | | `-- amdefine@1.0.1
| | `-- yargs@7.1.0
| | +-- camelcase@3.0.0
| | +-- cliui@3.2.0
| | | `-- wrap-ansi@2.1.0
| | +-- get-caller-file@1.0.2
| | +-- os-locale@1.4.0
| | | `-- lcid@1.0.0
| | | `-- invert-kv@1.0.0
| | +-- require-directory@2.1.1
| | +-- require-main-filename@1.0.1
| | +-- which-module@1.0.0
| | +-- y18n@3.2.1
| | `-- yargs-parser@5.0.0
| | `-- camelcase@3.0.0
| `-- stdout-stream@1.4.0
| `-- readable-stream@2.3.4
| +-- core-util-is@1.0.2
| +-- isarray@1.0.0
| +-- process-nextick-args@2.0.0
| +-- string_decoder@1.0.3
| `-- util-deprecate@1.0.2
`-- susy@2.2.12
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.
Removing intermediate container 3a798b0da35f
---> 12628b2f7678
Step 4/4 : RUN node_modules/.bin/node-sass node_modules/susy/sass/_susy.scss
---> Running in 6f2f2e25ba11
Removing intermediate container 6f2f2e25ba11
---> b07f7ec1a3bf
Successfully built b07f7ec1a3bf
~/tmp/susy docker --version
Docker version 18.02.0-ce, build fc4de44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment