Skip to content

Commit

Permalink
chore(docker): revert Node to 18.18.2 because of build issue
Browse files Browse the repository at this point in the history
It is known issue that `npm install` is stuck when building on platforms arm/v6 and arm/v7 of Docker images Node v19 and Node v20. See nodejs/docker-node#1829 and nodejs/docker-node#1798
  • Loading branch information
ismarslomic committed Nov 13, 2023
1 parent bc982c2 commit a76b112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
node-version: [20.x]
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# sending build arguments to the Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Using multi stage build
ARG BASE_IMAGE="node:20.9.0-alpine"
ARG BASE_IMAGE="node:18.18.2-alpine"

#### Build stage for compiling Typescript files ####
FROM ${BASE_IMAGE} as builder
Expand Down

0 comments on commit a76b112

Please sign in to comment.