Commit 3812a62b authored by doodlemania's avatar doodlemania

startup and dockerfile

parent ea1aeb2c
FROM cloudron/base:2.0.0@sha256:f9fea80513aa7c92fe2e7bf3978b54c8ac5222f47a9a32a7f8833edf0eb5a4f4
EXPOSE 3000
EXPOSE 8080
RUN apt-get update && apt-get upgrade -y
RUN mkdir -p /app/code/spreed &&
cd /app/code/spreed &&
git clone https://github.com/strukturag/nextcloud-spreed-signaling.git . &&
make build &&
mkdir /app/code/nats
RUN cd /app/code/nats &&
curl -L https://github.com/nats-io/nats-server/releases/download/v2.1.7/nats-server-v2.1.7-linux-amd64.zip -o nats-server.zip &&
unzip nats-server.zip &&
mv nats-server-v2.1.7-linux-amd64/* .
RUN sudo curl -sL -o /etc/apt/trusted.gpg.d/morph027-janus.asc https://packaging.gitlab.io/janus/gpg.key &&
. /etc/lsb-release; echo "deb [arch=amd64] https://packaging.gitlab.io/janus/$DISTRIB_CODENAME $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/morph027-janus.list &&
apt update &&
apt install janus janus-tools -y
COPY server.conf /app/code/spreed/server.conf
COPY janus.jcfg /etc/janus/janus.jcfg
COPY startup.sh /app/code/startup.sh
RUN chmod +x /app/code/startup.sh
CMD [ "/app/code/startup.sh" ]
#!/bin/bash
set -eu
janus &
sleep 10;
/app/code/nats/nats-server &
sleep 10;
/app/code/spreed/signaling &
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment