Browse Source

Corrected build for docker

master
silberengel 7 months ago
parent
commit
300dc2c66d
  1. 2
      Dockerfile
  2. 3
      import_map.json
  3. 2
      vite.config.ts

2
Dockerfile

@ -15,4 +15,4 @@ ENV ORIGIN=http://localhost:3000
RUN deno cache --import-map=import_map.json ./build/index.js RUN deno cache --import-map=import_map.json ./build/index.js
EXPOSE 3000 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" ]

3
import_map.json

@ -15,7 +15,10 @@
"flowbite-svelte": "npm:flowbite-svelte@0.48.x", "flowbite-svelte": "npm:flowbite-svelte@0.48.x",
"flowbite-svelte-icons": "npm:flowbite-svelte-icons@2.1.x", "flowbite-svelte-icons": "npm:flowbite-svelte-icons@2.1.x",
"@noble/curves": "npm:@noble/curves@^1.9.4", "@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": "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", "bech32": "npm:bech32@^2.0.0",
"highlight.js": "npm:highlight.js@^11.11.1", "highlight.js": "npm:highlight.js@^11.11.1",
"node-emoji": "npm:node-emoji@^2.2.0", "node-emoji": "npm:node-emoji@^2.2.0",

2
vite.config.ts

@ -33,7 +33,7 @@ export default defineConfig({
}, },
build: { build: {
rollupOptions: { rollupOptions: {
external: ["bech32"], // Removed bech32 from externals since it's needed on client side
}, },
}, },
test: { test: {

Loading…
Cancel
Save