You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
314 B
Markdown
18 lines
314 B
Markdown
# Wasm attempt
|
|
|
|
|
|
build:
|
|
```bash
|
|
GOOS=js GOARCH=wasm go build -o public/main.wasm
|
|
```
|
|
|
|
Run webserver:
|
|
```bash
|
|
docker run -ti \
|
|
--net=host \
|
|
-v "$(pwd)/mime.types":/etc/nginx/mime.types:ro \
|
|
-v "$(pwd)"/nginx.conf:/etc/nginx/sites-enabled/default \
|
|
-v "$(pwd):$(pwd)" \
|
|
hugotty/nginx:latest
|
|
```
|