Parcourir la source

add python to docker build

Pouria Ezzati il y a 1 an
Parent
commit
b53e13ee84
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Dockerfile

+ 5 - 0
Dockerfile

@@ -1,6 +1,11 @@
 # use older node version for build since arm/v8 threw error when node 20 was used
 FROM node:18.19.1-alpine AS build_image
 
+# install additional tools needed if on arm64 / armv7
+RUN RUN apk add --update python3 make g++\
+    && rm -rf /var/cache/apk/*
+
+
 # use production node environment by default
 ENV NODE_ENV=production