From c2c7f2d3b750c16813add9e57928bff3b4ed90f0 Mon Sep 17 00:00:00 2001 From: Seth For Privacy <40500387+sethforprivacy@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:27:53 +0100 Subject: [PATCH 1/2] Fix Docker builds and improve Dockerfile (#22) * Fix Docker builds and improve Dockerfile * Use latest bookworm-slim image for Node * Properly name final image * Use LTS Node version instead of latest --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84e9979..b94e949 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Docker build environment # ############################ -FROM node:18.16.1-bookworm-slim AS build +FROM node:lts-bookworm-slim AS build # Upgrade all packages and install dependencies RUN apt-get update \ @@ -23,7 +23,7 @@ RUN npm i && npm run build # Docker final environment # ############################ -FROM caddy:2.7.4-alpine +FROM caddy:alpine AS final EXPOSE 80 WORKDIR /var/www/html From 1edec8e2222d11600a32c178e858b8ab4ab85345 Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Sat, 1 Feb 2025 15:32:20 -0500 Subject: [PATCH 2/2] hash suffix --- src/app/pipes/hash-suffix.pipe.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pipes/hash-suffix.pipe.ts b/src/app/pipes/hash-suffix.pipe.ts index f6a57cf..e77bce5 100644 --- a/src/app/pipes/hash-suffix.pipe.ts +++ b/src/app/pipes/hash-suffix.pipe.ts @@ -17,7 +17,7 @@ export class HashSuffixPipe implements PipeTransform { return '0'; } - const suffixes = [' H/s', ' KH/s', ' MH/s', ' GH/s', ' TH/s', ' PH/s', ' EH/s']; + const suffixes = [' H/s', ' KH/s', ' MH/s', ' GH/s', ' TH/s', ' PH/s', ' EH/s', ' ZH/s', ' YH/s', ' RH/s', ' QH/s']; let power = Math.floor(Math.log10(value) / 3); if (power < 0) {