Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofsalvation committed Sep 26, 2015
1 parent 2a1a6f7 commit 71ff95b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.2
FROM armbuild/alpine:3.2

# ENV VERSION=v0.10.40 CFLAGS="-D__USE_MISC"
# ENV VERSION=v0.12.7
Expand All @@ -11,7 +11,12 @@ ENV CONFIG_FLAGS="--fully-static --without-npm" DEL_PKGS="libgcc libstdc++" RM_D
RUN apk add --update curl make gcc g++ python linux-headers paxctl libgcc libstdc++ && \
curl -sSL https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz | tar -xz && \
cd /node-${VERSION} && \
./configure --prefix=/usr ${CONFIG_FLAGS} && \
./configure --prefix=/usr ${CONFIG_FLAGS} `grep -q ARM /proc/cpuinfo && echo --without-snapshot` \
grep -q ARM /proc/cpuinfo && { \
echo "monkeypatch vfpv2->vfpv3 (deprecated for ARM)" && \
CONFIG_FLAGS="$CONFIG_FLAGS --without-snapshot"; \
sed -i 's/vfpv2/vfpv3/g' configure; \
}; \
make -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) && \
make install && \
paxctl -cm /usr/bin/node && \
Expand Down

0 comments on commit 71ff95b

Please sign in to comment.