On run set OPENVIDU_PUBLICURL=docker env var
FROM openvidu/openvidu-server-kms:2.6.0
RUN apt-get update
RUN apt-get install -y git
RUN apt-get install -y nodejs npm
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
&& apt-get install -y nodejs
RUN npm install -g @angular/[email protected]
RUN npm install -g http-server
COPY entrypoint.sh .
EXPOSE 4443
EXPOSE 5000
ENTRYPOINT ["/bin/sh", "-c", "./entrypoint.sh"]
echo $OPENVIDU_PUBLICURL;
echo 'run supervisord'; /usr/bin/supervisord & echo '##### BUILD OPENVIDU #####';
git clone https://github.com/elastest/openvidu-loadtest; cd openvidu-loadtest/webapp openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -subj '/CN=www.mydom.com/O=My Company LTD./C=US' -keyout key.pem -out cert.pem;
echo '##### RUN OPENVIDU #####'; http-server -S -p 5000;
docker pull elastest/openvidu-loadtest:latest