diff --git a/docker/edge-alpine.Dockerfile b/docker/edge-alpine.Dockerfile index 96c5bd18..6806d64f 100644 --- a/docker/edge-alpine.Dockerfile +++ b/docker/edge-alpine.Dockerfile @@ -3,6 +3,7 @@ RUN apk add --no-cache nodejs yarn npm python3 openssl build-base jq curl WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi diff --git a/docker/edge-ubuntu.Dockerfile b/docker/edge-ubuntu.Dockerfile index 679843de..b891e234 100644 --- a/docker/edge-ubuntu.Dockerfile +++ b/docker/edge-ubuntu.Dockerfile @@ -3,6 +3,7 @@ RUN apt-get update && apt-get install -y openssl jq WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production RUN mkdir /public diff --git a/docker/stable-alpine.Dockerfile b/docker/stable-alpine.Dockerfile index 39212df6..56ce5463 100644 --- a/docker/stable-alpine.Dockerfile +++ b/docker/stable-alpine.Dockerfile @@ -3,6 +3,7 @@ RUN apk add --no-cache nodejs yarn npm python3 openssl build-base WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production RUN if [ "$(uname -m)" = "armv7l" ]; then npm install bcrypt better-sqlite3 --build-from-source; fi diff --git a/docker/stable-ubuntu.Dockerfile b/docker/stable-ubuntu.Dockerfile index 1f9cee47..a8d1c98c 100644 --- a/docker/stable-ubuntu.Dockerfile +++ b/docker/stable-ubuntu.Dockerfile @@ -3,6 +3,7 @@ RUN apt-get update && apt-get install -y openssl WORKDIR /app ADD .yarn ./.yarn ADD yarn.lock package.json .yarnrc.yml ./ +RUN if [ "$(uname -m)" = "armv7l" ]; then yarn config set taskPoolConcurrency 2; yarn config set networkConcurrency 5; fi RUN yarn workspaces focus --all --production FROM node:18-bullseye-slim as prod diff --git a/upcoming-release-notes/302.md b/upcoming-release-notes/302.md new file mode 100644 index 00000000..52597503 --- /dev/null +++ b/upcoming-release-notes/302.md @@ -0,0 +1,6 @@ +--- +category: Maintenance +authors: [twk3] +--- + +Reduce docker build failures on 32bit platforms