Update Dockerfile
This commit is contained in:
@@ -14,10 +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/bin
|
||||
RUN mkdir -p /usr/src/out
|
||||
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/LICENSE /usr/src/out/LICENSE
|
||||
RUN tar -czvf node-$NodeVersion-alpine-x64.tar.gz /usr/src/out/bin /usr/src/out/LICENSE
|
||||
RUN tar -czvf node-$NodeVersion-alpine-x64.tar.gz ./bin ./LICENSE
|
||||
RUN cp ./node-$NodeVersion-alpine-x64.tar.gz /node_staging
|
||||
|
||||
# copy the tar.gz into the mapped in volume
|
||||
|
||||
Reference in New Issue
Block a user