diff options
author | Ayke van Laethem <[email protected]> | 2018-10-21 22:36:46 +0200 |
---|---|---|
committer | Ayke van Laethem <[email protected]> | 2018-10-21 22:42:38 +0200 |
commit | c88d2d10a77ff87b6888c9927f931b11c6b4d7e7 (patch) | |
tree | 9bf3dc4df89f6aedafc94a49b7489f8705313be4 /docs | |
parent | 58ce5d9bf24ce482c5d25d9f7d110861f420ee7b (diff) | |
download | tinygo-c88d2d10a77ff87b6888c9927f931b11c6b4d7e7.tar.gz tinygo-c88d2d10a77ff87b6888c9927f931b11c6b4d7e7.zip |
docs: give a working Docker example
Diffstat (limited to 'docs')
-rw-r--r-- | docs/docker.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/docker.rst b/docs/docker.rst index a11cbb5cf..f64342d52 100644 --- a/docs/docker.rst +++ b/docs/docker.rst @@ -5,10 +5,11 @@ Using with Docker ================= -A docker container exists for easy access to the ``tinygo`` CLI. -For example, to compile the blinky example from the root of the repository:: +A docker container exists for easy access to the ``tinygo`` CLI. For example, to +compile ``wasm.wasm`` for the WebAssembly example, from the root of the +repository:: - docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/blinky.elf -target arduino /src/examples/blinky + docker run --rm -v $(pwd):/src tinygo/tinygo build -o /src/wasm.wasm -target wasm examples/wasm Note that you cannot run ``tinygo flash`` from inside the docker container, so it is less useful for microcontroller development. |