diff --git a/docker/Dockerfile b/docker/Dockerfile index 57864883..b23583b0 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -25,18 +25,18 @@ RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ -Ddisable_quic \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ elif [[ "${release}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ else \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ fi diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 10135efb..24c59e97 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -25,18 +25,18 @@ RUN crystal spec --warnings all \ --link-flags "-lxml2 -llzma" RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ -Ddisable_quic \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ elif [[ "${release}" == 1 ]] ; then \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --release \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ else \ - crystal build ./src/invidious.cr \ + crystal build -Dapi_only ./src/invidious.cr \ --static --warnings all \ --link-flags "-lxml2 -llzma"; \ fi