38 wiersze
1.3 KiB
Docker
38 wiersze
1.3 KiB
Docker
FROM alpine:3.12 AS qemu
|
|
RUN apk --update add --no-cache curl
|
|
RUN cd /tmp && \
|
|
curl -L https://github.com/balena-io/qemu/releases/download/v3.0.0%2Bresin/qemu-3.0.0+resin-arm.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-arm/qemu-arm-static .
|
|
|
|
FROM arm32v6/alpine:3.12
|
|
COPY --from=qemu /tmp/qemu-arm-static /usr/bin/
|
|
ARG BUILD_DATE
|
|
ARG VCS_REF
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
org.label-schema.name="Docker Container Stats" \
|
|
org.label-schema.description="Monitor your docker containers with this web interface." \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.vcs-url="https://github.com/virtualzone/docker-container-stats" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
RUN apk --update add --no-cache \
|
|
supervisor \
|
|
nodejs \
|
|
npm \
|
|
docker \
|
|
sqlite
|
|
|
|
RUN mkdir -p /opt/docker-stats/db
|
|
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 --build-from-source=sqlite3 && \
|
|
apk del .build-deps
|
|
|
|
ADD stats.js /opt/docker-stats/
|
|
ADD httpd.js /opt/docker-stats/
|
|
ADD html/ /opt/docker-stats/html/
|
|
ADD supervisord.conf /etc/supervisord.conf
|
|
|
|
EXPOSE 8080
|
|
CMD ["/usr/bin/supervisord"] |