From 300dc2c66dea95c4314821c2fc18bc56e7f37cdd Mon Sep 17 00:00:00 2001 From: silberengel Date: Fri, 15 Aug 2025 00:26:07 +0200 Subject: [PATCH] Corrected build for docker --- Dockerfile | 2 +- import_map.json | 3 +++ vite.config.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f09ee6..12ad673 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ ENV ORIGIN=http://localhost:3000 RUN deno cache --import-map=import_map.json ./build/index.js EXPOSE 3000 -CMD [ "deno", "run", "--allow-env", "--allow-read", "--allow-net", "--import-map=import_map.json", "./build/index.js" ] +CMD [ "deno", "run", "--allow-env", "--allow-read", "--allow-net", "--allow-sys", "--import-map=import_map.json", "./build/index.js" ] diff --git a/import_map.json b/import_map.json index d536e63..3c9c287 100644 --- a/import_map.json +++ b/import_map.json @@ -15,7 +15,10 @@ "flowbite-svelte": "npm:flowbite-svelte@0.48.x", "flowbite-svelte-icons": "npm:flowbite-svelte-icons@2.1.x", "@noble/curves": "npm:@noble/curves@^1.9.4", + "@noble/curves/secp256k1": "npm:@noble/curves@^1.9.4/secp256k1", "@noble/hashes": "npm:@noble/hashes@^1.8.0", + "@noble/hashes/sha2.js": "npm:@noble/hashes@^1.8.0/sha2.js", + "@noble/hashes/utils": "npm:@noble/hashes@^1.8.0/utils", "bech32": "npm:bech32@^2.0.0", "highlight.js": "npm:highlight.js@^11.11.1", "node-emoji": "npm:node-emoji@^2.2.0", diff --git a/vite.config.ts b/vite.config.ts index 0872066..47552d4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -33,7 +33,7 @@ export default defineConfig({ }, build: { rollupOptions: { - external: ["bech32"], + // Removed bech32 from externals since it's needed on client side }, }, test: {