added makefile and Docker

main
Johannes Bülow 2023-01-04 19:29:55 +01:00
parent 32913d8695
commit 05ad02f14c
2 changed files with 8 additions and 1 deletions

2
Dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM nginx:alpine
COPY dist /usr/share/nginx/html

View File

@ -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