mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Cache Rust build cache when building docker images (#14130)
This commit is contained in:
parent
c101fc6568
commit
6fee2f49f3
1
changelog.d/14129.bugfix
Normal file
1
changelog.d/14129.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix pinning Rust dependencies in docker images.
|
1
changelog.d/14130.misc
Normal file
1
changelog.d/14130.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Cache Rust build cache when building docker images.
|
@ -135,7 +135,9 @@ ARG TEST_ONLY_IGNORE_POETRY_LOCKFILE
|
|||||||
# Install the synapse package itself.
|
# Install the synapse package itself.
|
||||||
# If we have populated requirements.txt, we don't install any dependencies
|
# If we have populated requirements.txt, we don't install any dependencies
|
||||||
# as we should already have those from the previous `pip install` step.
|
# as we should already have those from the previous `pip install` step.
|
||||||
RUN if [ -z "$TEST_ONLY_IGNORE_POETRY_LOCKFILE" ]; then \
|
RUN --mount=type=cache,target=/synapse/target,sharing=locked \
|
||||||
|
--mount=type=cache,target=${CARGO_HOME}/registry,sharing=locked \
|
||||||
|
if [ -z "$TEST_ONLY_IGNORE_POETRY_LOCKFILE" ]; then \
|
||||||
pip install --prefix="/install" --no-deps --no-warn-script-location /synapse[all]; \
|
pip install --prefix="/install" --no-deps --no-warn-script-location /synapse[all]; \
|
||||||
else \
|
else \
|
||||||
pip install --prefix="/install" --no-warn-script-location /synapse[all]; \
|
pip install --prefix="/install" --no-warn-script-location /synapse[all]; \
|
||||||
|
Loading…
Reference in New Issue
Block a user