mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-01 11:32:27 +08:00
0800fd4458
Bumps python from 3.12.5-alpine3.20 to 3.12.6-alpine3.20. --- updated-dependencies: - dependency-name: python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
57 lines
1.5 KiB
Docker
57 lines
1.5 KiB
Docker
# syntax=docker/dockerfile:latest
|
|
FROM python:3.12.6-alpine3.20
|
|
|
|
COPY --chmod=775 start.sh /start.sh
|
|
|
|
ENV RECORDING_VERSION=v0.1
|
|
ENV ALLOW_ALL=false
|
|
ENV HPB_PROTOCOL=https
|
|
ENV SKIP_VERIFY=false
|
|
ENV HPB_PATH=/standalone-signaling/
|
|
|
|
RUN set -ex; \
|
|
apk upgrade --no-cache -a; \
|
|
apk add --no-cache \
|
|
ca-certificates \
|
|
tzdata \
|
|
bash \
|
|
xvfb \
|
|
ffmpeg \
|
|
firefox \
|
|
bind-tools \
|
|
netcat-openbsd \
|
|
git \
|
|
wget \
|
|
shadow \
|
|
pulseaudio \
|
|
openssl \
|
|
build-base \
|
|
linux-headers \
|
|
geckodriver; \
|
|
useradd -d /tmp --system recording; \
|
|
# Give root a random password
|
|
echo "root:$(openssl rand -base64 12)" | chpasswd; \
|
|
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; \
|
|
rm -rf /src; \
|
|
touch /etc/recording.conf; \
|
|
chown recording:recording -R \
|
|
/tmp /etc/recording.conf; \
|
|
mkdir -p /conf; \
|
|
chmod 777 /conf; \
|
|
chmod 777 /tmp; \
|
|
apk del --no-cache \
|
|
git \
|
|
wget \
|
|
shadow \
|
|
openssl \
|
|
build-base \
|
|
linux-headers;
|
|
|
|
WORKDIR /tmp
|
|
USER recording
|
|
ENTRYPOINT ["/start.sh"]
|
|
CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"]
|
|
|
|
HEALTHCHECK CMD nc -z 127.0.0.1 1234 || exit 1
|
|
LABEL com.centurylinklabs.watchtower.enable="false"
|