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