Browse Source
Docker: Use Crystal compiler cache in docker builds (#5163)
Adding the compiler cache reduces the build times on repeated
builds significantly
pull/5194/head
syeopite
9 months ago
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A
2 changed files with
2 additions and
2 deletions
-
docker/Dockerfile
-
docker/Dockerfile.arm64
|
|
|
@ -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 \ |
|
|
|
|
|
|
|
@ -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 \ |
|
|
|
|