|
@@ -73,13 +73,18 @@ wasm-pack test rustpad-wasm --chrome --headless
|
|
|
|
|
|
## Deployment
|
|
|
|
|
|
-Rustpad is distributed as a single ~10 MB Docker image, which is built
|
|
|
-automatically from the `Dockerfile` in this repository. You can pull the latest
|
|
|
-version of the image with
|
|
|
+Rustpad is continuously deployed as a single ~10 MB Docker image, which is built
|
|
|
+automatically from the `Dockerfile` in this repository. We use
|
|
|
+[Google Cloud Build](https://cloud.google.com/build) and
|
|
|
+[Google Cloud Run](https://cloud.google.com/run).
|
|
|
+
|
|
|
+To build and run a Docker image, use the following commands, then open
|
|
|
+`http://localhost:3030` in your browser.
|
|
|
|
|
|
```
|
|
|
-docker pull ekzhang/rustpad
|
|
|
+docker build -t rustpad .
|
|
|
```
|
|
|
|
|
|
-We deploy a public instance of this image using
|
|
|
-[Google Cloud Run](https://cloud.google.com/run).
|
|
|
+```
|
|
|
+docker run --rm -dp 3030:3030 rustpad
|
|
|
+```
|