diff --git a/Dockerfile b/Dockerfile index 4b0d3fc..2993503 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,8 @@ ENV LANG=en_US.UTF-8 \ TIMEZONE="${TZ:-$TIMEZONE}" \ HOSTNAME="casjaysdev-ifconfig" -COPY ./rootfs/. / COPY --from=src /go/bin/echoip /opt/echoip/ +COPY ./rootfs/. / RUN set -ex; \ rm -Rf "/etc/apk/repositories"; \ @@ -37,7 +37,8 @@ RUN set -ex; \ if [ "${ALPINE_VERSION}" = "edge" ]; then echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE_VERSION}/testing" >>"/etc/apk/repositories" ; fi ; \ apk update --update-cache && apk add --no-cache ${PACK_LIST} -RUN ln -sf /opt/echoip/echoip /usr/local/bin/echoip +RUN ln -sf /opt/echoip/echoip /usr/local/bin/echoip && \ + sed -i 's|REPLACE_MODIFIED|'$(date +"%y-%m-%d at %H:%M")'|g' /opt/echoip/html/index.html RUN echo 'Running cleanup' ; \ rm -Rf /usr/share/doc/* /usr/share/info/* /tmp/* /var/tmp/* ; \ diff --git a/rootfs/opt/echoip/html/index.html b/rootfs/opt/echoip/html/index.html index 374227e..dd9053d 100644 --- a/rootfs/opt/echoip/html/index.html +++ b/rootfs/opt/echoip/html/index.html @@ -333,12 +333,14 @@ and documentation is available at
https://github.com/mpolden/echoip.

+ >.

My modified code can be found at
https://github.com/dockermgr/ifconfig.

+


+
Last modified on REPLACE_MODIFIED