use alpine:edge with crystal 1.20.0 to build Invidious, use alpine:3.23 for final layer

This commit is contained in:
Fijxu 2026-04-25 17:23:18 -04:00
parent 971e326152
commit cfb4165bdd
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -2,7 +2,7 @@
ARG OPENSSL_VERSION='3.5.2'
ARG OPENSSL_SHA256='c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec'
FROM alpine:3.22 AS dependabot-alpine
FROM alpine:edge AS dependabot-alpine
# We compile openssl ourselves due to a memory leak in how crystal interacts
# with openssl
@ -21,7 +21,7 @@ RUN tar -xzvf openssl-${OPENSSL_VERSION}.tar.gz
RUN cd openssl-${OPENSSL_VERSION} && ./Configure --openssldir=/etc/ssl && make -j$(nproc)
FROM dependabot-alpine AS builder
RUN apk add --no-cache 'crystal=1.16.3-r0' shards \
RUN apk add --no-cache 'crystal=1.20.0-r0' shards \
sqlite-static yaml-static yaml-dev \
pcre2-static gc-static \
libxml2-static zlib-static \
@ -63,7 +63,7 @@ RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ;
--link-flags "-lxml2 -llzma"; \
fi
FROM alpine:3.22
FROM alpine:3.23
RUN apk add --no-cache rsvg-convert ttf-opensans tini tzdata
WORKDIR /invidious
RUN addgroup -g 1000 -S invidious && \