added makefile and Docker
parent
32913d8695
commit
05ad02f14c
|
@ -0,0 +1,2 @@
|
|||
FROM nginx:alpine
|
||||
COPY dist /usr/share/nginx/html
|
7
Makefile
7
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
|
||||
|
|
Loading…
Reference in New Issue