35 lines
1.1 KiB
Docker
35 lines
1.1 KiB
Docker
FROM golang:1.23.2-bullseye@sha256:ebaf58d74f200c27dce0181203a1347e41b5c159c9aa0517a95bec594aabbde4 as build
|
|
|
|
# renovate: datasource=github-tags depName=strukturag/nextcloud-spreed-signaling versioning=semver
|
|
ENV SPREED_SIGNALING_VERSION v2.0.0
|
|
|
|
RUN set -ex; \
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
protobuf-compiler \
|
|
; \
|
|
git clone --branch $SPREED_SIGNALING_VERSION https://github.com/strukturag/nextcloud-spreed-signaling.git /build; \
|
|
cd /build; \
|
|
make build;
|
|
|
|
FROM debian:bullseye-slim@sha256:25c3de160be2f4b3e15a54fe295c0f8a683738165ac0f64804dc2530cc3f821d
|
|
|
|
COPY --from=build /build/bin/signaling /usr/local/bin/signaling
|
|
COPY --from=build /build/server.conf.in /config/server.conf
|
|
|
|
RUN set -ex; \
|
|
\
|
|
groupadd --system --gid 601 signaling; \
|
|
useradd --no-log-init --system --gid signaling --no-create-home --uid 601 signaling; \
|
|
\
|
|
apt-get update; \
|
|
apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
USER signaling:signaling
|
|
|
|
EXPOSE 8088 8443
|
|
|
|
CMD ["/usr/local/bin/signaling", "--config", "/config/server.conf"]
|