mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-11-15 11:35:56 +08:00
fa67e0a719
Signed-off-by: GitHub <noreply@github.com>
46 lines
1.3 KiB
Docker
46 lines
1.3 KiB
Docker
FROM python:3.11.3-alpine3.18
|
|
|
|
COPY --chmod=775 start.sh /start.sh
|
|
|
|
ENV RECORDING_VERSION v16.0.4
|
|
|
|
RUN set -ex; \
|
|
apk add --no-cache \
|
|
ca-certificates \
|
|
tzdata \
|
|
bash \
|
|
xvfb \
|
|
ffmpeg \
|
|
firefox \
|
|
bind-tools \
|
|
netcat-openbsd \
|
|
git \
|
|
wget \
|
|
shadow \
|
|
pulseaudio \
|
|
openssl; \
|
|
# chromium chromium-chromedriver?
|
|
apk add --no-cache geckodriver --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing; \
|
|
useradd -d /tmp --system recording; \
|
|
# Give root a random password
|
|
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
|
git clone --recursive https://github.com/nextcloud/spreed --depth=1 --single-branch --branch "$RECORDING_VERSION" /src; \
|
|
mv -v /src/recording/pyproject.toml /src/recording/src/pyproject.toml; \
|
|
python3 -m pip install /src/recording/src; \
|
|
rm -rf /src; \
|
|
touch /etc/recording.conf; \
|
|
chown recording:recording -R \
|
|
/tmp /etc/recording.conf; \
|
|
apk del --no-cache \
|
|
git \
|
|
wget \
|
|
shadow \
|
|
openssl;
|
|
|
|
WORKDIR /tmp
|
|
USER recording
|
|
ENTRYPOINT ["/start.sh"]
|
|
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/etc/recording.conf"]
|
|
|
|
HEALTHCHECK CMD nc -z localhost 1234 || exit 1
|
|
LABEL com.centurylinklabs.watchtower.monitor-only="true"
|