summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docker-compose.yml6
-rw-r--r--docker/Dockerfile11
-rw-r--r--docker/Dockerfile.arm648
3 files changed, 11 insertions, 14 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 6a854475..afda8726 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -32,15 +32,13 @@ services:
# statistics_enabled: false
hmac_key: "CHANGE_ME!!"
healthcheck:
- test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/comments/jNQXAC9IVRw || exit 1
+ test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/trending || exit 1
interval: 30s
timeout: 5s
retries: 2
- depends_on:
- - invidious-db
invidious-db:
- image: docker.io/library/postgres:13
+ image: docker.io/library/postgres:14
restart: unless-stopped
volumes:
- postgresdata:/var/lib/postgresql/data
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 761bbdca..3d9323fd 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,4 +1,5 @@
-FROM crystallang/crystal:1.4.1-alpine AS builder
+FROM crystallang/crystal:1.12.1-alpine AS builder
+
RUN apk add --no-cache sqlite-static yaml-static
ARG release
@@ -19,8 +20,7 @@ COPY ./assets/ ./assets/
COPY ./videojs-dependencies.yml ./videojs-dependencies.yml
RUN crystal spec --warnings all \
- --link-flags "-lxml2 -llzma"
-
+ --link-flags "-lxml2 -llzma"
RUN if [[ "${release}" == 1 ]] ; then \
crystal build ./src/invidious.cr \
--release \
@@ -32,9 +32,8 @@ RUN if [[ "${release}" == 1 ]] ; then \
--link-flags "-lxml2 -llzma"; \
fi
-
-FROM alpine:3.16
-RUN apk add --no-cache librsvg ttf-opensans tini
+FROM alpine:3.18
+RUN apk add --no-cache rsvg-convert ttf-opensans tini
WORKDIR /invidious
RUN addgroup -g 1000 -S invidious && \
adduser -u 1000 -S invidious -G invidious
diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64
index cf9231fb..f054b326 100644
--- a/docker/Dockerfile.arm64
+++ b/docker/Dockerfile.arm64
@@ -1,5 +1,5 @@
-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
+FROM alpine:3.19 AS builder
+RUN apk add --no-cache 'crystal=1.10.1-r0' shards sqlite-static yaml-static yaml-dev libxml2-static zlib-static openssl-libs-static openssl-dev musl-dev xz-static
ARG release
@@ -32,8 +32,8 @@ RUN if [[ "${release}" == 1 ]] ; then \
--link-flags "-lxml2 -llzma"; \
fi
-FROM alpine:3.16
-RUN apk add --no-cache librsvg ttf-opensans tini
+FROM alpine:3.18
+RUN apk add --no-cache rsvg-convert ttf-opensans tini
WORKDIR /invidious
RUN addgroup -g 1000 -S invidious && \
adduser -u 1000 -S invidious -G invidious