Explorar o código

Add node-pre-gyp and limit to arm/v7

Nicolas Meienberger %!s(int64=3) %!d(string=hai) anos
pai
achega
f70893fad1
Modificáronse 2 ficheiros con 5 adicións e 3 borrados
  1. 1 1
      .github/workflows/release-candidate.yml
  2. 4 2
      Dockerfile

+ 1 - 1
.github/workflows/release-candidate.yml

@@ -36,7 +36,7 @@ jobs:
         uses: docker/build-push-action@v3
         with:
           context: .
-          platforms: linux/amd64,linux/arm64,linux/arm/v7
+          platforms: linux/arm/v7
           push: true
           tags: meienberger/runtipi:rc-${{ steps.meta.outputs.TAG }}
           cache-from: type=registry,ref=meienberger/runtipi:buildcache

+ 4 - 2
Dockerfile

@@ -1,6 +1,7 @@
 FROM node:18-buster-slim AS build
 
-RUN npm install --quiet node-gyp -g
+RUN npm install --quiet -g node-gyp
+RUN npm install --quiet -g node-pre-gyp
 
 WORKDIR /common
 COPY ./packages/common /common
@@ -44,7 +45,8 @@ RUN apt-get install -y docker-ce docker-ce-cli containerd.io
 # Install node
 RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
 RUN apt-get install -y nodejs
-RUN npm install --quiet node-gyp -g
+RUN npm install --quiet -g node-gyp
+RUN npm install --quiet -g node-pre-gyp
 
 # Install docker-compose
 RUN curl -L "https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose