From 1528ef3d4c72896322548be23a85f4fa1f6f389f Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Thu, 21 Oct 2021 15:19:19 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 878fd99..2e995b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM alpine ARG NodeVersion +ARG PythonVersion RUN mkdir -p /usr/src/app WORKDIR /usr/src/app # install dependency RUN apk add --no-cache libstdc++ -RUN apk add --no-cache --virtual .build-deps binutils-gold curl g++ gcc gnupg libgcc linux-headers make python3 -RUN ln -s /usr/bin/python3 /usr/bin/python +RUN apk add --no-cache --virtual .build-deps binutils-gold curl g++ gcc gnupg libgcc linux-headers make $PythonVersion # donwload and compile node from source code. RUN wget https://nodejs.org/dist/$NodeVersion/node-$NodeVersion.tar.gz && tar -zxvf node-$NodeVersion.tar.gz