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.
~/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 [email protected] [email protected]
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 [email protected] [email protected]
---> Running in 3a798b0da35f
> [email protected] 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
> [email protected] 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
/
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | | `-- [email protected]
| | | | | `-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| `-- [email protected]
| `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| `-- [email protected]
`-- [email protected]
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