1
0
forked from GitHub/gf-core

Add Dockerfile and script for building WASM files

This commit is contained in:
John J. Camilleri
2022-08-01 11:56:11 +02:00
parent 539b946c96
commit 72bec84f58
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#! /usr/bin/env bash
set -e
cd ../c
# Build inside Docker image
IMAGE="gf/build-c-runtime-wasm"
docker build . --file Dockerfile-wasm --tag $IMAGE
# Copy bulit files from container to host
docker run --rm --volume "$PWD":/tmp/host $IMAGE bash -c "cp pgf.js pgf.wasm /tmp/host/"