diff options
| author | syeopite <syeopite@syeopite.dev> | 2025-02-26 14:11:12 -0800 |
|---|---|---|
| committer | syeopite <syeopite@syeopite.dev> | 2025-02-26 14:11:12 -0800 |
| commit | f9b9e85ee4768605bad5af9884a893afbd2985d2 (patch) | |
| tree | e94b6449ad956c51ff41752f2ddc10d86aab96ee | |
| parent | 6ac74f43626942d1b968c3e37b4cb7f781fbbbe5 (diff) | |
| parent | e2df12b7d66618c21cffc1f75cefeea083f3dbc7 (diff) | |
| download | invidious-f9b9e85ee4768605bad5af9884a893afbd2985d2.tar.gz invidious-f9b9e85ee4768605bad5af9884a893afbd2985d2.tar.bz2 invidious-f9b9e85ee4768605bad5af9884a893afbd2985d2.zip | |
Docker: Use Crystal compiler cache in docker builds (#5163)
Adding the compiler cache reduces the build times on repeated
builds significantly
| -rw-r--r-- | docker/Dockerfile | 2 | ||||
| -rw-r--r-- | docker/Dockerfile.arm64 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 900c9e74..a07bef28 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -21,7 +21,7 @@ COPY ./videojs-dependencies.yml ./videojs-dependencies.yml RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" -RUN if [[ "${release}" == 1 ]] ; then \ +RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \ crystal build ./src/invidious.cr \ --release \ --static --warnings all \ diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index ce9bab08..7fcb176e 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -22,7 +22,7 @@ COPY ./videojs-dependencies.yml ./videojs-dependencies.yml RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" -RUN if [[ "${release}" == 1 ]] ; then \ +RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \ crystal build ./src/invidious.cr \ --release \ --static --warnings all \ |
