mirror of
https://github.com/iv-org/invidious.git
synced 2025-09-21 01:36:29 -05:00
CI: add Dockerfile.arm64 version
This commit is contained in:
parent
cbf8cd07ce
commit
28633346c0
@ -1,6 +1,20 @@
|
|||||||
FROM alpine:3.21 AS builder
|
# https://github.com/openssl/openssl/releases/tag/openssl-3.5.2
|
||||||
|
ARG OPENSSL_VERSION='3.5.2'
|
||||||
|
FROM alpine:3.21 AS dependabot-alpine
|
||||||
|
|
||||||
|
FROM dependabot-alpine AS openssl-builder
|
||||||
|
RUN apk add --no-cache curl perl linux-headers build-base
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
|
||||||
|
ARG OPENSSL_VERSION
|
||||||
|
RUN curl -Ls "https://github.com/openssl/openssl/releases/download/openssl-${OPENSSL_VERSION}/openssl-${OPENSSL_VERSION}.tar.gz" | tar xz
|
||||||
|
RUN cd openssl-${OPENSSL_VERSION} && ./Configure --openssldir=/etc/ssl && make -j
|
||||||
|
|
||||||
|
FROM dependabot-alpine AS builder
|
||||||
RUN apk add --no-cache 'crystal=1.14.0-r0' shards sqlite-static yaml-static yaml-dev libxml2-static \
|
RUN apk add --no-cache 'crystal=1.14.0-r0' shards sqlite-static yaml-static yaml-dev libxml2-static \
|
||||||
zlib-static openssl-libs-static openssl-dev musl-dev xz-static
|
zlib-static musl-dev xz-static
|
||||||
|
RUN apk del openssl-dev openssl-libs-static
|
||||||
|
|
||||||
ARG release
|
ARG release
|
||||||
|
|
||||||
@ -22,12 +36,17 @@ COPY ./videojs-dependencies.yml ./videojs-dependencies.yml
|
|||||||
RUN crystal spec --warnings all \
|
RUN crystal spec --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"
|
--link-flags "-lxml2 -llzma"
|
||||||
|
|
||||||
|
ARG OPENSSL_VERSION
|
||||||
|
COPY --from=openssl-builder /openssl-${OPENSSL_VERSION} /openssl-${OPENSSL_VERSION}
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \
|
RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; then \
|
||||||
|
PKG_CONFIG_PATH=/openssl-${OPENSSL_VERSION} \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build ./src/invidious.cr \
|
||||||
--release \
|
--release \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
else \
|
else \
|
||||||
|
PKG_CONFIG_PATH=/openssl-${OPENSSL_VERSION} \
|
||||||
crystal build ./src/invidious.cr \
|
crystal build ./src/invidious.cr \
|
||||||
--static --warnings all \
|
--static --warnings all \
|
||||||
--link-flags "-lxml2 -llzma"; \
|
--link-flags "-lxml2 -llzma"; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user