Added build dependencies for ARM

pull/8/head
Heiner 2020-04-20 21:00:52 +02:00
rodzic 07082496ad
commit eb665148ba
3 zmienionych plików z 15 dodań i 6 usunięć

Wyświetl plik

@ -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/

Wyświetl plik

@ -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/

Wyświetl plik

@ -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/