Skip to content

Commit

Permalink
Merge pull request #19 from phanirithvij/dockerfile-changes
Browse files Browse the repository at this point in the history
keep dockerfiles consitent
  • Loading branch information
vergoh authored Oct 3, 2024
2 parents 6b0894f + 44b2e1c commit a1060a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ COPY --from=builder vnstat-*/examples/vnstat-metrics.cgi /var/www/localhost/htdo

RUN true \
&& set -ex \
&& addgroup -S vnstat \
&& addgroup -S vnstat \
&& adduser -S -h /var/lib/vnstat -s /sbin/nologin -g vnStat -D -H -G vnstat vnstat

VOLUME /var/lib/vnstat
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENV INDEX_IMAGE_OUTPUT=hs
ENV RUN_VNSTATD=1

COPY favicon.ico /var/www/localhost/htdocs/favicon.ico
COPY start.sh /start.sh
COPY start.sh /

RUN true \
&& set -ex \
Expand All @@ -42,8 +42,8 @@ RUN true \
gd-dev \
sqlite-dev \
git \
&& git clone --depth 1 https://github.com/vergoh/vnstat \
&& cd vnstat \
&& git clone --depth 1 https://github.com/vergoh/vnstat vnstat-master \
&& cd vnstat-*/ \
&& ./configure --prefix=/usr --sysconfdir=/etc \
&& make \
&& make install
Expand All @@ -55,9 +55,9 @@ COPY --from=builder /usr/bin/vnstat /usr/bin/vnstat
COPY --from=builder /usr/bin/vnstati /usr/bin/vnstati
COPY --from=builder /usr/sbin/vnstatd /usr/sbin/vnstatd
COPY --from=builder /etc/vnstat.conf /etc/vnstat.conf
COPY --from=builder vnstat/examples/vnstat.cgi /var/www/localhost/htdocs/index.cgi
COPY --from=builder vnstat/examples/vnstat-json.cgi /var/www/localhost/htdocs/json.cgi
COPY --from=builder vnstat/examples/vnstat-metrics.cgi /var/www/localhost/htdocs/metrics.cgi
COPY --from=builder vnstat-*/examples/vnstat.cgi /var/www/localhost/htdocs/index.cgi
COPY --from=builder vnstat-*/examples/vnstat-json.cgi /var/www/localhost/htdocs/json.cgi
COPY --from=builder vnstat-*/examples/vnstat-metrics.cgi /var/www/localhost/htdocs/metrics.cgi

RUN true \
&& set -ex \
Expand Down

0 comments on commit a1060a4

Please sign in to comment.