2021-07-11 10:17:09 -04:00
|
|
|
# Leverage a synapse base to be able to:
|
|
|
|
# "from synapse._scripts.register_new_matrix_user import request_registration"
|
2021-06-16 19:23:25 -04:00
|
|
|
FROM matrixdotorg/synapse
|
|
|
|
|
2021-07-11 10:17:09 -04:00
|
|
|
# This variable defaults to /data which is a volume made to keep data.
|
|
|
|
# Here, we want to trash those (and avoid the permission issues) by using something else
|
2021-06-16 19:23:25 -04:00
|
|
|
ENV SYNAPSE_CONFIG_DIR=/srv
|
|
|
|
|
2021-07-11 10:17:09 -04:00
|
|
|
# Generate keys for synapse
|
2021-06-16 19:23:25 -04:00
|
|
|
WORKDIR $SYNAPSE_CONFIG_DIR
|
2021-07-11 10:17:09 -04:00
|
|
|
ADD tests/homeserver.yaml .
|
2021-06-16 19:23:25 -04:00
|
|
|
RUN python -m synapse.app.homeserver --config-path homeserver.yaml --generate-keys
|
|
|
|
RUN chown -R 991:991 .
|
|
|
|
|
2021-07-12 19:16:24 -04:00
|
|
|
RUN pip install --no-cache-dir markdown matrix-nio httpx coverage
|
2021-06-16 19:23:25 -04:00
|
|
|
|
2021-07-11 10:17:09 -04:00
|
|
|
WORKDIR /app
|