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
This commit is contained in:
Mohamed Elashri 2024-04-04 21:47:29 +00:00 committed by GitHub
parent 74bff84226
commit 95b6dbd140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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