From 132444cbb967aacdb1109d458241605fbc9c394e Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 3 May 2023 16:37:22 +0200 Subject: [PATCH] optimize talk Dockerfile Signed-off-by: Zoey --- Containers/talk/Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Containers/talk/Dockerfile b/Containers/talk/Dockerfile index 476025c2..14192bb1 100644 --- a/Containers/talk/Dockerfile +++ b/Containers/talk/Dockerfile @@ -6,6 +6,9 @@ USER root COPY --from=nats /nats-server /usr/local/bin/nats-server COPY --from=signaling /usr/bin/nextcloud-spreed-signaling /usr/local/bin/nextcloud-spreed-signaling +COPY --chmod=775 start.sh /usr/bin/start.sh +COPY --chmod=664 supervisord.conf /supervisord.conf + RUN set -ex; \ apk add --no-cache \ ca-certificates \ @@ -30,15 +33,11 @@ RUN set -ex; \ util-linux \ build-base \ lua5.3-dev \ - luarocks5.3; - + luarocks5.3; \ + \ # Give root a random password -RUN echo "root:$(openssl rand -base64 12)" | chpasswd - -COPY --chmod=775 start.sh /usr/bin/start.sh -COPY --chmod=664 supervisord.conf /supervisord.conf - -RUN set -ex; \ + echo "root:$(openssl rand -base64 12)" | chpasswd; \ + \ touch \ /etc/nats.conf \ /etc/signaling.conf \