more updates march
This commit is contained in:
40
jitsi/base/Dockerfile
Normal file
40
jitsi/base/Dockerfile
Normal file
@@ -0,0 +1,40 @@
|
||||
FROM docker.io/library/debian:bookworm-slim
|
||||
|
||||
ARG JITSI_RELEASE=stable
|
||||
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
|
||||
|
||||
COPY rootfs /
|
||||
|
||||
RUN \
|
||||
dpkgArch="$(dpkg --print-architecture)" && \
|
||||
case "${dpkgArch##*-}" in \
|
||||
"amd64") TPL_ARCH=amd64; S6_ARCH=amd64 ;; \
|
||||
"arm64") TPL_ARCH=arm64; S6_ARCH=aarch64 ;; \
|
||||
*) echo "unsupported architecture"; exit 1 ;; \
|
||||
esac && \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y apt-transport-https apt-utils ca-certificates gnupg wget curl && \
|
||||
wget -qO /usr/bin/tpl https://github.com/jitsi/tpl/releases/download/v1.4.0/tpl-linux-${TPL_ARCH} && \
|
||||
# Workaround S6 bug when /bin is a symlink
|
||||
wget -qO /tmp/s6.tar.gz https://github.com/just-containers/s6-overlay/releases/download/v1.22.1.0/s6-overlay-${S6_ARCH}.tar.gz && \
|
||||
mkdir /tmp/s6 && \
|
||||
tar xfz /tmp/s6.tar.gz -C /tmp/s6 && \
|
||||
tar hxfz /tmp/s6.tar.gz -C / && \
|
||||
rm -f /usr/bin/execlineb && \
|
||||
cp /tmp/s6/bin/execlineb /usr/bin/ && \
|
||||
rm -rf /tmp/s6* && \
|
||||
wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | gpg --dearmour > /etc/apt/trusted.gpg.d/jitsi.gpg && \
|
||||
echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
|
||||
echo "deb http://ftp.debian.org/debian bookworm-backports main" > /etc/apt/sources.list.d/backports.list && \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get dist-upgrade -y && \
|
||||
apt-cleanup && \
|
||||
chmod +x /usr/bin/tpl
|
||||
|
||||
RUN [ "$JITSI_RELEASE" = "unstable" ] && \
|
||||
apt-dpkg-wrap apt-get update && \
|
||||
apt-dpkg-wrap apt-get install -y jq procps curl vim iputils-ping net-tools && \
|
||||
apt-cleanup || \
|
||||
true
|
||||
|
||||
ENTRYPOINT [ "/init" ]
|
||||
2
jitsi/base/rootfs/etc/apt/apt.conf.d/99local
Normal file
2
jitsi/base/rootfs/etc/apt/apt.conf.d/99local
Normal file
@@ -0,0 +1,2 @@
|
||||
APT::Install-Recommends "false";
|
||||
APT::Install-Suggests "false";
|
||||
0
jitsi/base/rootfs/etc/cont-finish.d/.gitkeep
Normal file
0
jitsi/base/rootfs/etc/cont-finish.d/.gitkeep
Normal file
0
jitsi/base/rootfs/etc/cont-init.d/.gitkeep
Normal file
0
jitsi/base/rootfs/etc/cont-init.d/.gitkeep
Normal file
10
jitsi/base/rootfs/etc/cont-init.d/01-set-timezone
Normal file
10
jitsi/base/rootfs/etc/cont-init.d/01-set-timezone
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ ! -z "$TZ" ]]; then
|
||||
if [[ -f /usr/share/zoneinfo/$TZ ]]; then
|
||||
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
|
||||
echo "$TZ" > /etc/timezone
|
||||
else
|
||||
echo "WARNING: $TZ is not a valid time zone."
|
||||
fi
|
||||
fi
|
||||
0
jitsi/base/rootfs/etc/fix-attrs.d/.gitkeep
Normal file
0
jitsi/base/rootfs/etc/fix-attrs.d/.gitkeep
Normal file
0
jitsi/base/rootfs/etc/services.d/.gitkeep
Normal file
0
jitsi/base/rootfs/etc/services.d/.gitkeep
Normal file
3
jitsi/base/rootfs/usr/bin/apt-cleanup
Executable file
3
jitsi/base/rootfs/usr/bin/apt-cleanup
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
rm -rf /var/lib/apt/lists/
|
||||
8
jitsi/base/rootfs/usr/bin/apt-dpkg-wrap
Executable file
8
jitsi/base/rootfs/usr/bin/apt-dpkg-wrap
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
export LC_ALL=C
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
bin=$1
|
||||
shift
|
||||
exec "$bin" "$@"
|
||||
Reference in New Issue
Block a user