Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Commit

Permalink
chore: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
calebboyd committed Jan 5, 2017
1 parent 4c085e8 commit e27e377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions builds/linux-static-x86/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ENV XBIN_VERSION=$XBIN_VERSION

WORKDIR /

RUN curl -sSL https://nodejs.org/dist/${VERSION}/node-v${NODE_VERSION}.tar.gz | tar -xz && \
RUN curl -sSL https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}.tar.gz | tar -xz && \
cd /node-v${NODE_VERSION} && \
./configure --prefix=/usr --fully-static && \
make -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
Expand All @@ -26,7 +26,7 @@ ENV XBIN_TEMP=/xbintemp
RUN echo 'console.log("setup")' | xbin -c="--fully-static" > out.bin

RUN node -e "var f=require('fs'),s='*'.repeat(19),o='out.bin';c=f.readFileSync(o);f.writeFileSync(o,c.slice(0,c.indexOf('/'+s+'xbin-start')))"
#docker build --build-arg NODE_VERSION=6.9.2 --build-arg NPM_VERSION=3.10.9 --build-arg XBIN_VERSION=2.1.1 -t xbin-static:6.9.2 .
#docker run -it -d xbin-static:6.9.2 sh
#docker build --build-arg NODE_VERSION=6.9.3 --build-arg NPM_VERSION=3.10.10 --build-arg XBIN_VERSION=2.2.0 -t xbin-static:6.9.3 .
#docker run -it -d xbin-static:6.9.3 sh
#docker ps
#docker cp <container_id>:/out.bin linux-static-ia32-6.9.2
#docker cp <container_id>:/out.bin linux-static-ia32-6.9.3

0 comments on commit e27e377

Please sign in to comment.