2024-02-16 16:21:18 +01:00
|
|
|
# syntax=docker/dockerfile:latest
|
2025-12-16 04:15:35 +00:00
|
|
|
FROM python:3.14.2-alpine3.22
|
2023-06-06 09:22:33 +02:00
|
|
|
|
|
|
|
|
COPY --chmod=775 start.sh /start.sh
|
2024-12-03 11:53:26 +01:00
|
|
|
COPY --chmod=775 healthcheck.sh /healthcheck.sh
|
2023-06-06 09:22:33 +02:00
|
|
|
|
2025-11-15 12:04:23 +00:00
|
|
|
ENV RECORDING_VERSION=v0.2.1
|
2024-06-21 13:27:36 +02:00
|
|
|
ENV ALLOW_ALL=false
|
|
|
|
|
ENV HPB_PROTOCOL=https
|
2025-05-09 10:06:56 +02:00
|
|
|
ENV NC_PROTOCOL=https
|
2024-06-21 13:27:36 +02:00
|
|
|
ENV SKIP_VERIFY=false
|
|
|
|
|
ENV HPB_PATH=/standalone-signaling/
|
2023-06-06 13:43:06 +02:00
|
|
|
|
2023-06-06 09:22:33 +02:00
|
|
|
RUN set -ex; \
|
2024-04-17 17:52:42 +02:00
|
|
|
apk upgrade --no-cache -a; \
|
2023-06-06 09:22:33 +02:00
|
|
|
apk add --no-cache \
|
|
|
|
|
ca-certificates \
|
|
|
|
|
tzdata \
|
|
|
|
|
bash \
|
|
|
|
|
xvfb \
|
|
|
|
|
ffmpeg \
|
2024-11-07 14:51:37 +01:00
|
|
|
firefox \
|
2023-06-06 09:22:33 +02:00
|
|
|
bind-tools \
|
|
|
|
|
netcat-openbsd \
|
|
|
|
|
git \
|
|
|
|
|
wget \
|
|
|
|
|
shadow \
|
2023-06-06 11:27:52 +02:00
|
|
|
pulseaudio \
|
2023-11-16 16:13:00 +01:00
|
|
|
openssl \
|
2023-11-16 16:16:41 +01:00
|
|
|
build-base \
|
2024-06-20 23:58:19 +02:00
|
|
|
linux-headers \
|
|
|
|
|
geckodriver; \
|
2024-11-06 16:12:36 +01:00
|
|
|
useradd -d /tmp --system recording -u 122; \
|
2023-06-06 09:22:33 +02:00
|
|
|
# Give root a random password
|
|
|
|
|
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
2023-11-16 11:43:49 +01:00
|
|
|
git clone --recursive https://github.com/nextcloud/nextcloud-talk-recording --depth=1 --single-branch --branch "$RECORDING_VERSION" /src; \
|
|
|
|
|
python3 -m pip install --no-cache-dir /src; \
|
2023-06-06 09:22:33 +02:00
|
|
|
rm -rf /src; \
|
2023-06-06 12:48:43 +02:00
|
|
|
touch /etc/recording.conf; \
|
2023-06-06 10:41:19 +02:00
|
|
|
chown recording:recording -R \
|
2023-06-06 11:27:52 +02:00
|
|
|
/tmp /etc/recording.conf; \
|
2023-06-26 18:18:26 +02:00
|
|
|
mkdir -p /conf; \
|
|
|
|
|
chmod 777 /conf; \
|
|
|
|
|
chmod 777 /tmp; \
|
2023-06-06 09:22:33 +02:00
|
|
|
apk del --no-cache \
|
|
|
|
|
git \
|
|
|
|
|
wget \
|
|
|
|
|
shadow \
|
2023-11-16 16:13:00 +01:00
|
|
|
openssl \
|
2023-11-16 16:16:41 +01:00
|
|
|
build-base \
|
|
|
|
|
linux-headers;
|
2023-06-06 09:22:33 +02:00
|
|
|
|
2024-11-07 12:07:44 +01:00
|
|
|
VOLUME /tmp
|
2023-06-06 11:27:52 +02:00
|
|
|
WORKDIR /tmp
|
2024-11-06 16:12:36 +01:00
|
|
|
USER 122
|
2023-06-06 09:22:33 +02:00
|
|
|
ENTRYPOINT ["/start.sh"]
|
2023-06-26 18:18:26 +02:00
|
|
|
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"]
|
2023-06-06 09:22:33 +02:00
|
|
|
|
2024-12-03 11:53:26 +01:00
|
|
|
HEALTHCHECK CMD /healthcheck.sh
|
2025-05-19 14:31:29 +02:00
|
|
|
LABEL com.centurylinklabs.watchtower.enable="false" \
|
|
|
|
|
org.label-schema.vendor="Nextcloud"
|