Bladeren bron

Add python3 to use `node-gyp` to allow native cross platform build

python3 would be required by node-gyp to natively build node add-on. This is required if we build for multi-platform
Mohamed Elashri 1 jaar geleden
bovenliggende
commit
95b6dbd140
1 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 5 2
      Dockerfile

+ 5 - 2
Dockerfile

@@ -6,8 +6,11 @@ LABEL license="AGPL-3.0,https://github.com/HeyPuter/puter/blob/master/LICENSE.tx
 LABEL version="1.2.46-beta-1"
 
 # Install git (required by Puter to check version)
-RUN apk add --no-cache git
-
+# python3 would be required by node-gyp to natively build node addon 
+# This is required if we build for multi-platform
+RUN apk add --no-cache git python3 make g++ \
+    && ln -s /usr/bin/python3 /usr/bin/python
+    
 # Setup working directory
 RUN mkdir -p /opt/puter/app
 WORKDIR /opt/puter/app