diff --git a/Dockerfile b/Dockerfile index 35914c4..7f64120 100755 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,15 @@ MAINTAINER Drewster727 # Install hddtemp RUN apt-get update && apt-get -y install build-essential hddtemp - COPY hddtemp.db /etc/ +# Replace hddtemp with new build and cleanup +ADD files /temp +RUN rm -f /usr/sbin/hddtemp +RUN cp /temp/hddtemp /usr/sbin/ +RUN chmod +x /usr/sbin/hddtemp +RUN rm -fdr /temp + # Define default command. # example = -d --listen localhost --port 7634 /dev/s* CMD hddtemp $HDDTEMP_ARGS diff --git a/README.md b/README.md index 3637c5c..95c82fd 100755 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ docker container for hddtemp: http://savannah.nongnu.org/projects/hddtemp -NOTE: This repository will install hddtemp in the docker container from apt repositories. I do not maintain the hddtemp project. +NOTE: This repository will install hddtemp (NVMe and default temperature compatible) in the docker container from apt repositories. I do not maintain the hddtemp project. Example: ``` docker run -d \ ---privileged=true +--privileged=true \ --name="hddtemp-docker" \ -e HDDTEMP_ARGS="-q -d -F /dev/sd*" \ -e TZ="America/Chicago" \ diff --git a/files/hddtemp b/files/hddtemp new file mode 100644 index 0000000..0f6b23e Binary files /dev/null and b/files/hddtemp differ