dockerfile: use x86-64-v2 instead to support more CPUs
All checks were successful
Invidious CI / build (push) Successful in 5m30s

I used x86-64-v3 because my CPU supports it, but I doubt this is going
to make Invidious any faster of most of the operations.
This commit is contained in:
Fijxu 2024-11-26 19:31:48 -03:00
parent 47ef5dfe4c
commit 79859100a8
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -23,7 +23,7 @@ RUN crystal spec --warnings all \
--link-flags "-lxml2 -llzma" --link-flags "-lxml2 -llzma"
RUN if [[ "${release}" == 1 ]] ; then \ RUN if [[ "${release}" == 1 ]] ; then \
crystal build ./src/invidious.cr \ crystal build ./src/invidious.cr \
--release --mcpu=x86-64-v3 \ --release --mcpu=x86-64-v2 \
--static --warnings all \ --static --warnings all \
--link-flags "-lxml2 -llzma"; \ --link-flags "-lxml2 -llzma"; \
else \ else \