diff --git a/documents/resources/web-instance.md b/documents/resources/web-instance.md index c2ed4c8..6a0261e 100644 --- a/documents/resources/web-instance.md +++ b/documents/resources/web-instance.md @@ -5,8 +5,23 @@ description: Setting up an app instance as a webpage. ---- ## Preparing the SDK + + +### Using pre-built docker image + +TODO: use official images + +This image comes with `save_blobs` and `save_files` to `false`, so it won't use disk. +``` +docker run -d -p :5279 -p :5280 vshyba/websdk + ### Building your own image +Clone the SDK repo: +``` +git clone https://github.com/lbryio/lbry-sdk.git +``` + Create a config.yaml file and modify as you need. This is a good start: ``` allowed_origin: "*" @@ -27,15 +42,6 @@ Now move the config file to `docker/webconf.yaml` and run: docker build -f docker/Dockerfile.web -t / . docker push ``` - - -### Using pre-built docker image - -TODO: use official images - -This image comes with `save_blobs` and `save_files` to `false`, so it won't use disk. -``` -docker run -d -p :5279 -p :5280 vshyba/websdk ``` ## Webapp