summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile.arm64
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-11-01 17:34:26 +0000
committerGitHub <noreply@github.com>2022-11-01 17:34:26 +0000
commit758b7df400742d768abf0c005e6751d12c03e479 (patch)
treea992efb375c71bdf5222441ced8d1f84961f568e /docker/Dockerfile.arm64
parent84cd4d6a5b1854bcf1058351e390cc0f4855c9d7 (diff)
downloadinvidious-758b7df400742d768abf0c005e6751d12c03e479.tar.gz
invidious-758b7df400742d768abf0c005e6751d12c03e479.tar.bz2
invidious-758b7df400742d768abf0c005e6751d12c03e479.zip
dockerfile: Pass '-Ddisable_quic' to 'crystal build' (#3376)
+ use alpine 3.16 as a base like the crystal team
Diffstat (limited to 'docker/Dockerfile.arm64')
-rw-r--r--docker/Dockerfile.arm649
1 files changed, 8 insertions, 1 deletions
diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64
index 35d3fa7b..ef3284b1 100644
--- a/docker/Dockerfile.arm64
+++ b/docker/Dockerfile.arm64
@@ -2,6 +2,7 @@ FROM alpine:3.16 AS builder
RUN apk add --no-cache 'crystal=1.4.1-r0' shards sqlite-static yaml-static yaml-dev libxml2-dev zlib-static openssl-libs-static openssl-dev musl-dev
ARG release
+ARG disable_quic
WORKDIR /invidious
COPY ./shard.yml ./shard.yml
@@ -23,7 +24,13 @@ COPY ./videojs-dependencies.yml ./videojs-dependencies.yml
RUN crystal spec --warnings all \
--link-flags "-lxml2 -llzma"
-RUN if [ ${release} == 1 ] ; then \
+RUN if [[ "${release}" == 1 && "${disable_quic}" == 1 ]] ; then \
+ crystal build ./src/invidious.cr \
+ --release \
+ -Ddisable_quic \
+ --static --warnings all \
+ --link-flags "-lxml2 -llzma"; \
+ elif [[ "${release}" == 1 ]] ; then \
crystal build ./src/invidious.cr \
--release \
--static --warnings all \