From 05ad02f14c094cf9513a22c9cc92028166ef51b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20B=C3=BClow?= Date: Wed, 4 Jan 2023 19:29:55 +0100 Subject: [PATCH] added makefile and Docker --- Dockerfile | 2 ++ Makefile | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9ef95f7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM nginx:alpine +COPY dist /usr/share/nginx/html \ No newline at end of file diff --git a/Makefile b/Makefile index d26a8bd..498c0a3 100644 --- a/Makefile +++ b/Makefile @@ -7,13 +7,18 @@ dev: test: $(JSPKGMAN) run vite check -build: wasm-build +build: $(JSPKGMAN) run vite build wasm-pack: wasm-pack build $(CURDIR)/wasm --target web cp $(CURDIR)/wasm/pkg/crypttool_wasm_bg.wasm $(CURDIR)/src/lib/crypttool.wasm +docker: + podman build -t docker.io/jmbitci/crypttool . + podman push docker.io/jmbitci/crypttool + + #TODO get rid of -f and check whether files exist instead clean: rm -f $(CURDIR)/src/lib/crypttool.wasm