fix Dockerfiles

This commit is contained in:
Tingluo Huang
2021-10-22 15:28:37 +00:00
committed by GitHub
parent 0302790be2
commit 869b2ad57e
2 changed files with 3 additions and 29 deletions

View File

@@ -14,11 +14,11 @@ RUN wget https://nodejs.org/dist/$NodeVersion/node-$NodeVersion.tar.gz && tar -z
RUN cd node-$NodeVersion && ./configure --dest-cpu=x64 --partly-static && make -j$(getconf _NPROCESSORS_ONLN)
# create and copy tar.gz into /node_staging
RUN mkdir -p /usr/src/out
RUN mkdir -p /usr/src/out/bin
WORKDIR /usr/src/out
RUN cp /usr/src/app/node-$NodeVersion/out/Release/node /usr/src/out/bin
RUN cp /usr/src/app/node-$NodeVersion/out/Release/node /usr/src/out/bin/node
RUN cp /usr/src/app/node-$NodeVersion/LICENSE /usr/src/out/LICENSE
RUN tar -czvf node-$NodeVersion-alpine-x64.tar.gz ./bin ./LICENSE
RUN tar -czvf node-$NodeVersion-alpine-x64.tar.gz ./bin ./LICENSE && rm -rf ./bin ./LICENSE
RUN cp ./node-$NodeVersion-alpine-x64.tar.gz /node_staging
# copy the tar.gz into the mapped in volume