diff --git a/Dockerfile.multistage b/Dockerfile.multistage new file mode 100644 index 0000000..9f82e9b --- /dev/null +++ b/Dockerfile.multistage @@ -0,0 +1,9 @@ +FROM node:latest AS builder +WORKDIR /var/build/ +COPY ./ /var/build/ +RUN npm install +RUN npm run build + + +FROM nginx:alpine +COPY --from=builder /var/build/dist /usr/share/nginx/html diff --git a/Makefile b/Makefile index baae535..0660b6d 100644 --- a/Makefile +++ b/Makefile @@ -29,3 +29,6 @@ clean: rm -f $(CURDIR)/src/lib/crypttool.wasm rm -rf $(CURDIR)/node_modules/* rm -rf $(CURDIR)/dist + rm -rf $(CURDIR)/.yarn + rm -rf $(CURDIR)/package-lock.json + rm -rf $(CURDIR)/yarn.lock diff --git a/src/App.svelte b/src/App.svelte index 78ee636..08d3fdc 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -30,7 +30,7 @@
You can drag and drop a file on the "Encrypt" Button to encrypt it with a randomly generated password, and decrypt a file encrypted with this tool. - For more information check out the Documentation. + For more information check out the Documentation.
diff --git a/vite.config.ts b/vite.config.ts index 2e2a817..46e734a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,8 @@ import { defineConfig } from 'vite'; import { svelte } from '@sveltejs/vite-plugin-svelte'; -import wasm from "vite-plugin-wasm"; import topLevelAwait from "vite-plugin-top-level-await"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [svelte(), wasm(), topLevelAwait()], + plugins: [svelte(), topLevelAwait()], })