Kaynağa Gözat

Fix arm/v7 build

Nicolas Meienberger 3 yıl önce
ebeveyn
işleme
ac65a0b9d2
2 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 1 1
      package.json
  2. 5 1
      packages/system-api/Dockerfile

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
     "test": "jest",
     "prepare": "husky install",
     "act:test-install": "act --container-architecture linux/amd64 -j test-install",
-    "act:docker": "act --container-architecture linux/amd64 --secret-file github.secrets -j docker",
+    "act:docker": "act --container-architecture linux/amd64 --secret-file github.secrets -j build-images",
     "start:dev": "docker-compose -f docker-compose.dev.yml --env-file .env.dev up --build",
     "start:rc": "docker-compose -f docker-compose.rc.yml --env-file .env up --build",
     "start:prod": "docker-compose --env-file .env up --build"

+ 5 - 1
packages/system-api/Dockerfile

@@ -10,6 +10,9 @@ RUN apt-get update && apt-get install -y \
     gnupg \
     lsb-release
 
+RUN apt-get install -y \
+    g++ gcc make python
+
 RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
 
 RUN echo \
@@ -20,8 +23,9 @@ RUN apt-get update
 RUN apt-get install -y docker-ce docker-ce-cli containerd.io
 
 # Install node
-RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
+RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
 RUN apt-get install -y nodejs
+RUN npm install --quiet node-gyp -g
 
 # 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