mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-24 20:14:53 +01:00
23 lines
670 B
Markdown
23 lines
670 B
Markdown
Usage of docker is a third-party contribution and not actively tested, used or supported by the main developer(s).
|
|
|
|
Having said that, you can also use Docker to create a local dev environment.
|
|
|
|
In this repository, create a Docker image:
|
|
|
|
docker build -t hydrogen .
|
|
|
|
Then start up a container from that image:
|
|
|
|
docker run \
|
|
--name hydrogen-dev \
|
|
--publish 3000:3000 \
|
|
--volume "$PWD":/code \
|
|
--interactive \
|
|
--tty \
|
|
--rm \
|
|
hydrogen
|
|
|
|
Then point your browser to `http://localhost:3000`. You can see the server logs in the terminal where you started the container.
|
|
|
|
To stop the container, simply hit `ctrl+c`.
|