Преглед изворни кода

Cache Rust build cache when building docker images (#14130)

tags/v1.70.0rc1
Erik Johnston пре 1 година
committed by GitHub
родитељ
комит
6fee2f49f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 измењених фајлова са 5 додато и 1 уклоњено
  1. +1
    -0
      changelog.d/14129.bugfix
  2. +1
    -0
      changelog.d/14130.misc
  3. +3
    -1
      docker/Dockerfile

+ 1
- 0
changelog.d/14129.bugfix Прегледај датотеку

@@ -0,0 +1 @@
Fix pinning Rust dependencies in docker images.

+ 1
- 0
changelog.d/14130.misc Прегледај датотеку

@@ -0,0 +1 @@
Cache Rust build cache when building docker images.

+ 3
- 1
docker/Dockerfile Прегледај датотеку

@@ -135,7 +135,9 @@ ARG TEST_ONLY_IGNORE_POETRY_LOCKFILE
# Install the synapse package itself.
# If we have populated requirements.txt, we don't install any dependencies
# 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]; \
else \
pip install --prefix="/install" --no-warn-script-location /synapse[all]; \


Loading…
Откажи
Сачувај