diff --git a/.github/workflows/kuzzle-plugin-dev.yml b/.github/workflows/kuzzle-plugin-dev.yml index 0e1bf25d95..c391caf4e1 100644 --- a/.github/workflows/kuzzle-plugin-dev.yml +++ b/.github/workflows/kuzzle-plugin-dev.yml @@ -5,6 +5,9 @@ on: branches: - master +env: + DOCKER_PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7" + jobs: dockerhub-deploy: name: Kuzzle plugin-dev Node.js @@ -38,5 +41,5 @@ jobs: context: . file: ./docker/images/plugin-dev/Dockerfile push: true - platforms: "linux/amd64,linux/arm64" + platforms: ${{ env.DOCKER_PLATFORMS }} tags: kuzzleio/plugin-dev:${{ steps.get-version.outputs.major-version }},kuzzleio/plugin-dev:latest,kuzzleio/plugin-dev:${{ steps.get-version.outputs.version }} diff --git a/docker/images/plugin-dev/Dockerfile b/docker/images/plugin-dev/Dockerfile index 97ef5f9cb2..e50014154c 100644 --- a/docker/images/plugin-dev/Dockerfile +++ b/docker/images/plugin-dev/Dockerfile @@ -11,8 +11,6 @@ RUN set -x \ libzmq3-dev \ libunwind-dev -RUN npm install -g ergol kourou - WORKDIR /app ADD ./bin bin @@ -23,7 +21,7 @@ ADD ./package-lock.json package-lock.json ADD ./index.ts index.ts ADD ./tsconfig.json tsconfig.json -RUN npm ci +RUN npm ci --noproxy registry.npmjs.org --maxsockets 1 RUN npm run build RUN npm prune --production