Skip to content
Snippets Groups Projects
Commit fe089b13 authored by Benedikt Heine's avatar Benedikt Heine
Browse files

[Docker] Build docker image via compose


It's much easier to build the image via docker-compose instead of an
error-prone low-level docker call.

Signed-off-by: default avatarBenedikt Heine <bebe@bebehei.de>
parent 3fe0938b
No related merge requests found
......@@ -9,13 +9,7 @@ use that server.
## Build
Build the docker image with the `docker build` command from the root of the synapse repository.
```
docker build -t docker.io/matrixdotorg/synapse .
```
The `-t` option sets the image tag. Official images are tagged `matrixdotorg/synapse:<version>` where `<version>` is the same as the release tag in the synapse git repository.
Build the docker image with the `docker-compose build` command.
You may have a local Python wheel cache available, in which case copy the relevant packages in the ``cache/`` directory at the root of the project.
......
......@@ -6,6 +6,7 @@ version: '3'
services:
synapse:
build: ../..
image: docker.io/matrixdotorg/synapse:latest
# Since snyapse does not retry to connect to the database, restart upon
# failure
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment