diff --git a/Dockerfile.arm32v6 b/Dockerfile.arm32v6 index c52d509..3648419 100644 --- a/Dockerfile.arm32v6 +++ b/Dockerfile.arm32v6 @@ -22,9 +22,12 @@ RUN apk --update add --no-cache \ sqlite RUN mkdir -p /opt/docker-stats/db -RUN cd /opt/docker-stats && \ +RUN apk --update add --no-cache --virtual .build-deps \ + make python2 gcc g++ libc-dev && \ + cd /opt/docker-stats && \ npm update && \ - npm install express sqlite3 body-parser moment + npm install express sqlite3 body-parser moment --build-from-source=sqlite3 && \ + apk del .build-deps ADD stats.js /opt/docker-stats/ ADD httpd.js /opt/docker-stats/ diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 788339e..f8de704 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 @@ -22,9 +22,12 @@ RUN apk --update add --no-cache \ sqlite RUN mkdir -p /opt/docker-stats/db -RUN cd /opt/docker-stats && \ +RUN apk --update add --no-cache --virtual .build-deps \ + make python2 gcc g++ libc-dev && \ + cd /opt/docker-stats && \ npm update && \ - npm install express sqlite3 body-parser moment + npm install express sqlite3 body-parser moment --build-from-source=sqlite3 && \ + apk del .build-deps ADD stats.js /opt/docker-stats/ ADD httpd.js /opt/docker-stats/ diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index 768354f..7ab3de7 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 @@ -22,9 +22,12 @@ RUN apk --update add --no-cache \ sqlite RUN mkdir -p /opt/docker-stats/db -RUN cd /opt/docker-stats && \ +RUN apk --update add --no-cache --virtual .build-deps \ + make python2 gcc g++ libc-dev && \ + cd /opt/docker-stats && \ npm update && \ - npm install express sqlite3 body-parser moment + npm install express sqlite3 body-parser moment --build-from-source=sqlite3 && \ + apk del .build-deps ADD stats.js /opt/docker-stats/ ADD httpd.js /opt/docker-stats/