ainsey11 / octopusenergy-consumption-metrics

A utility written in nodejs to pull energy consumption from the Octopus Energy API for tracking usage in grafana.
22 stars 13 forks source link

Updated node to latest 19.6.0 #19

Closed 0lzi closed 1 year ago

0lzi commented 1 year ago

Built fine but still doesn't have the latest npm installed

npm notice
npm notice New patch version of npm available! 9.4.0 -> 9.4.2
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.4.2>
npm notice Run `npm install -g npm@9.4.2` to update!
npm notice

adding RUN npm install -g npm@9.4.2 to the Dockerfile made the build very slow

0lzi commented 1 year ago

RUN npm install -g npm@9.4.2 in the Dockerfile does get rid of the warning

EDIT:

Also this does increase the size of the final image considerably

repo/octopus-energy-metrics     npmfix               320babcb6d0b   20 seconds ago   250MB
repo/octopus-energy-metrics     node19.6.0           81df6228dac2   16 minutes ago   237MB
repo/octopus-energy-metrics     latest               2253c252366b   23 minutes ago   181MB