docker-container-stats/Dockerfile.arm64v8

38 wiersze
1.3 KiB
Docker

FROM alpine:3.16 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-aarch64.tar.gz | tar zxvf - -C . && mv qemu-3.0.0+resin-aarch64/qemu-aarch64-static .
FROM arm64v8/alpine:3.16
COPY --from=qemu /tmp/qemu-aarch64-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"]