https://github.com/sass/node-sass
188
Using DIND to compile and generate prebuilt binaries for node-sass, such as prebuilt binaries for ARM64 CPUs.
# syntax=docker/dockerfile:1.4
ARG DOCKER_VERSION=25.0.4
FROM docker.io/library/docker:${DOCKER_VERSION}-git
RUN apk add --no-cache bash
ENV DEBUG_MODE=0 \
SASS_NODE_PAIRS= \
RSYNC_USER= \
RSYNC_PASSWORD= \
RSYNC_SASS_DEST= \
PY3_DOWNLOAD_URL=https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz \
NODEJS_ORG_MIRROR=https://mirrors.ustc.edu.cn/node \
NPM_REGISTRY_MIRROR=https://registry.npmmirror.com \
SASS_SRC_SITE= \
SASS_GIT_REPO=https://github.com/sass/node-sass \
REPOSITORY=docker.io \
BUILDKIT_TAG=v0.13.0 \
PLATFROM=linux/arm64 \
DOCKER_OPTS= \
# https://www.debian.org/distrib/archive.en.html \
DEBIAN_ARCHIVE_MAX_VERSION=9 \
PATH=/build:$PATH
WORKDIR /build
# https://hub.docker.com/r/docker/dockerfile
COPY --chmod=755 <<-"eoe" entrypoint.sh
Omit...
eoe
COPY --chmod=755 <<-"eob" build.sh
Omit...
eob
COPY --chmod=755 <<-"eor" rsync.sh
Omit...
eor
ENTRYPOINT []
CMD ["bash", "entrypoint.sh"]
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-e "SASS_NODE_PAIRS=8.0.0+14:16" \
-e "RSYNCD_SASS_DEST=a.b.c.d::npm/node-sass/" \
shilazi/node-sass-dind-builder:25.0.4-git
Full SASS_NODE_PAIRS was:
8.0.0+14:16:18 \
7.0.3+12:14:16 \
7.0.2+12:14:16 \
7.0.1+12:14:16 \
7.0.0+12:14:16 \
6.0.1+12:14:16 \
6.0.0+12:14:16 \
5.0.0+10:12:14 \
4.14.1+10:12:14 \
4.14.0+10:12:14 \
4.13.1+10:12 \
4.13.0+10:12 \
4.12.0+10:12 \
4.11.0+10 \
4.10.0+10 \
4.9.4+10 \
4.9.3+10 \
4.9.2+10 \
4.9.1+10 \
4.9.0+10
| Name | Note | Default | Example |
|---|---|---|---|
| DEBUG_MODE | 0 disable,1 enable | 0 | 1 |
| SASS_NODE_PAIRS | the pair of node-sass and nodejs, format: sass_tag+node_v1:node_v2 | "" | 8.0.0+14:16 |
| RSYNC_USER | rsync auth username | "" | user |
| RSYNC_PASSWORD | rsync auth password | "" | password |
| RSYNC_SASS_DEST | rsyncd target host and path | "" | a.b.c.d::npm/node-sass/ |
| PY3_DOWNLOAD_URL | py36 src download url | https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz | |
| NODEJS_ORG_MIRROR | dist host of npm install | https://mirrors.ustc.edu.cn/node | |
| NPM_REGISTRY_MIRROR | registry host of npm install | https://registry.npmmirror.com | |
| SASS_SRC_SITE | node-sass github release src download url | "" | http://a.b.c.d/node-sass/ |
| SASS_GIT_REPO | node-sass git clone url | https://github.com/sass/node-sass | |
| REPOSITORY | the image repository of buildkit and nodejs | docker.io | |
| BUILDKIT_TAG | the buildkit image tag | v0.13.0 | |
| PLATFROM | DIND build --platform option | linux/arm64 | |
| DOCKER_OPTS | DIND build other opts | "" | --no-cache |
Content type
Image
Digest
sha256:c06f23a70…
Size
121.2 MB
Last updated
over 2 years ago
docker pull shilazi/node-sass-dind-builder:25.0.4-git