fix(docker): explicitly install python3 (#2273) [skip ci]

This commit is contained in:
TheCatLady
2021-11-10 23:08:22 -05:00
committed by GitHub
parent b1b367aac6
commit f1cd0878a5

View File

@@ -7,8 +7,10 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN \
case "${TARGETPLATFORM}" in \
'linux/arm64') apk add --no-cache python make g++ ;; \
'linux/arm/v7') apk add --no-cache python make g++ ;; \
'linux/arm64' | 'linux/arm/v7') \
apk add --no-cache python3 make g++ && \
ln -s /usr/bin/python3 /usr/bin/python \
;; \
esac
COPY package.json yarn.lock ./