36 lines
1.1 KiB
Docker
36 lines
1.1 KiB
Docker
FROM golang:1.22.3-bullseye@sha256:78b171fe51f25b8c3197710f281dacae94759a254e9a486576005f9dadba9e7d as build
|
|
|
|
# renovate: datasource=github-tags depName=strukturag/nextcloud-spreed-signaling versioning=semver
|
|
ENV SPREED_SIGNALING_VERSION v1.2.4
|
|
|
|
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:0e75382930ceb533e2f438071307708e79dc86d9b8e433cc6dd1a96872f2651d
|
|
|
|
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"]
|