mirror of
https://github.com/strukturag/nextcloud-spreed-signaling.git
synced 2024-11-21 15:17:58 +00:00
27 lines
707 B
Docker
27 lines
707 B
Docker
FROM --platform=${BUILDPLATFORM} golang:1.23-alpine AS builder
|
|
ARG TARGETARCH
|
|
ARG TARGETOS
|
|
|
|
WORKDIR /workdir
|
|
|
|
COPY . .
|
|
RUN touch /.dockerenv && \
|
|
apk add --no-cache bash git make && \
|
|
GOOS=${TARGETOS} GOARCH=${TARGETARCH} make server
|
|
|
|
FROM alpine:3
|
|
|
|
ENV CONFIG=/config/server.conf
|
|
RUN adduser -D spreedbackend && \
|
|
apk add --no-cache bash tzdata ca-certificates su-exec
|
|
|
|
COPY --from=builder /workdir/bin/signaling /usr/bin/nextcloud-spreed-signaling
|
|
COPY ./server.conf.in /config/server.conf.in
|
|
COPY ./docker/server/entrypoint.sh /
|
|
COPY ./docker/server/stop.sh /
|
|
COPY ./docker/server/wait.sh /
|
|
RUN /usr/bin/nextcloud-spreed-signaling -version
|
|
|
|
STOPSIGNAL SIGUSR1
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|