File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,6 +259,41 @@ To change the config.json for the desktop app, create a config file which will b
259259
260260In the paths above, ` $NAME ` is typically ` Riot ` , unless you use ` --profile $PROFILE ` in which case it becomes ` Riot-$PROFILE ` .
261261
262+ Running from Docker
263+ ===================
264+
265+ The Docker image can be used to serve riot-web as a web server. The easiest way to use
266+ it is to use the prebuilt image:
267+ ``` bash
268+ docker run -p 80:80 vectorim/riot-web
269+ ```
270+
271+ To supply your own custom ` config.json ` , map a volume to ` /app/config.json ` . For example,
272+ if your custom config was located at ` /etc/riot-web/config.json ` then your Docker command
273+ would be:
274+ ``` bash
275+ docker run -p 80:80 -v /etc/riot-web/config.json:/app/config.json vectorim/riot-web
276+ ```
277+
278+ To build the image yourself:
279+ ``` bash
280+ git clone https://github.com/vector-im/riot-web.git riot-web
281+ cd riot-web
282+ git checkout master
283+ docker build -t vectorim/riot-web .
284+ ```
285+
286+ If you're building a custom branch, or want to use the develop branch, check out the appropriate
287+ riot-web branch and then run:
288+ ``` bash
289+ docker build -t vectorim/riot-web:develop \
290+ --build-arg REACT_SDK_REPO=" https://github.com/matrix-org/matrix-react-sdk.git" \
291+ --build-arg REACT_SDK_BRANCH=" develop" \
292+ --build-arg JS_SDK_REPO=" https://github.com/matrix-org/matrix-js-sdk.git" \
293+ --build-arg JS_SDK_BRANCH=" develop" \
294+ .
295+ ```
296+
262297Labs Features
263298=============
264299
You can’t perform that action at this time.
0 commit comments