-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker.sh
28 lines (24 loc) · 879 Bytes
/
docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# # docker buildx create --name builder --bootstrap --use
# docker --debug buildx build --progress=plain --no-cache \
# --platform linux/amd64 --output type=local,dest=./prebuilds,platform-split=false \
# --build-arg="P=amd64" \
# -f ./Dockerfile.musl \
# .
musl() {
docker --debug buildx build --load --progress=plain --no-cache \
--platform linux/amd64 --output=type=docker \
--build-arg="PLATFORM=amd64" \
--build-arg="NODE_VERSION=16.20.1" \
--build-arg="RUN_TEST=true" \
-f ./.github/docker/Dockerfile.musl -t musl-zstd-base \
.
}
glibc() {
docker buildx build --load --progress=plain \
--platform linux/amd64 \
--build-arg="NODE_ARCH=x64" \
--build-arg="RUN_TEST=true" \
-f ./.github/docker/Dockerfile.glibc \
.
}
musl