Compare commits

...

3 Commits

Author SHA1 Message Date
Olivier Wilkinson (reivilibre)
f869a5339a Newsfile
Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
2022-08-17 17:56:25 +01:00
Olivier Wilkinson (reivilibre)
1092cb79a9 Use poetry export --verbose 2022-08-17 17:51:38 +01:00
Olivier Wilkinson (reivilibre)
dcd8a66a63 Copy requirements.txt to the final image so we can use it to debug problems 2022-08-17 17:51:14 +01:00
2 changed files with 6 additions and 1 deletions

1
changelog.d/13548.docker Normal file
View File

@@ -0,0 +1 @@
Add more information to the Docker image for debugging an issue where dependencies are not properly installed.

View File

@@ -77,7 +77,7 @@ ARG TEST_ONLY_IGNORE_POETRY_LOCKFILE
# Otherwise, just create an empty requirements file so that the Dockerfile can
# proceed.
RUN if [ -z "$TEST_ONLY_IGNORE_POETRY_LOCKFILE" ]; then \
/root/.local/bin/poetry export --extras all -o /synapse/requirements.txt ${TEST_ONLY_SKIP_DEP_HASH_VERIFICATION:+--without-hashes}; \
/root/.local/bin/poetry export --verbose --extras all -o /synapse/requirements.txt ${TEST_ONLY_SKIP_DEP_HASH_VERIFICATION:+--without-hashes}; \
else \
touch /synapse/requirements.txt; \
fi
@@ -159,6 +159,10 @@ RUN \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /install /usr/local
# Copy requirements.txt for traceability
COPY --from=requirements /synapse/requirements.txt /
COPY ./docker/start.py /start.py
COPY ./docker/conf /conf