docker-container-stats/Dockerfile

33 wiersze
998 B
Docker
Czysty Zwykły widok Historia

2024-02-24 07:11:35 +00:00
FROM alpine:3.19
2020-04-19 16:01:30 +00:00
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 \
2016-02-22 21:45:52 +00:00
supervisor \
2020-04-19 16:01:30 +00:00
nodejs \
npm \
docker \
sqlite
2016-02-22 21:45:52 +00:00
2020-04-19 16:01:30 +00:00
RUN mkdir -p /opt/docker-stats/db
2022-08-14 13:28:36 +00:00
RUN apk --update add --no-cache --virtual .build-deps \
2022-08-14 13:36:01 +00:00
make python3 gcc g++ libc-dev && \
2022-08-14 13:28:36 +00:00
cd /opt/docker-stats && \
2016-02-22 21:45:52 +00:00
npm update && \
2022-08-14 13:28:36 +00:00
npm install express sqlite3 body-parser moment --build-from-source=sqlite3 && \
apk del .build-deps
2016-02-22 21:45:52 +00:00
2016-02-23 21:24:23 +00:00
ADD stats.js /opt/docker-stats/
ADD httpd.js /opt/docker-stats/
ADD html/ /opt/docker-stats/html/
2020-04-19 16:01:30 +00:00
ADD supervisord.conf /etc/supervisord.conf
2016-02-23 21:24:23 +00:00
2016-02-22 21:45:52 +00:00
EXPOSE 8080
2024-02-24 07:11:35 +00:00
CMD ["/usr/bin/supervisord"]