bigbluebutton-Github/bigbluebutton-web/Dockerfile
fenn-cs 6a204f0826 http => https to prevent 403 access denied during gradle download
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2020-01-16 13:45:51 +01:00

65 lines
2.3 KiB
Docker

FROM bbb-common-web AS builder
RUN mkdir -p /root/tools \
&& cd /root/tools \
&& wget https://services.gradle.org/distributions/gradle-2.12-bin.zip \
&& unzip gradle-2.12-bin.zip \
&& ln -s gradle-2.12 gradle
RUN mkdir -p /root/tools \
&& cd /root/tools \
&& wget https://github.com/grails/grails-core/releases/download/v2.5.2/grails-2.5.2.zip \
&& unzip grails-2.5.2.zip \
&& ln -s grails-2.5.2 grails
ENV PATH="/root/tools/gradle/bin:/root/tools/grails/bin:${PATH}"
ARG COMMON_VERSION=0.0.1-SNAPSHOT
COPY . /source
RUN cd /source \
&& find -name build.gradle -exec sed -i "s|\(.*org.bigbluebutton.*bbb-common-message[^:]*\):.*|\1:$COMMON_VERSION'|g" {} \; \
&& find -name build.gradle -exec sed -i "s|\(.*org.bigbluebutton.*bbb-common-web[^:]*\):.*|\1:$COMMON_VERSION'|g" {} \;
RUN cd /source \
&& gradle resolveDeps \
&& grails war
FROM tomcat:7-jre8
WORKDIR $CATALINA_HOME
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get -y install imagemagick xpdf-utils netcat libreoffice ttf-liberation fonts-crosextra-carlito fonts-crosextra-caladea unzip procps \
&& wget http://ftp.us.debian.org/debian/pool/main/libj/libjpeg8/libjpeg8_8d-1+deb7u1_amd64.deb \
&& dpkg -i libjpeg8*.deb \
&& rm libjpeg8*.deb
RUN echo "deb http://ubuntu.bigbluebutton.org/xenial-200-dev bigbluebutton-xenial main " | tee /etc/apt/sources.list.d/bigbluebutton.list \
&& wget http://ubuntu.bigbluebutton.org/repo/bigbluebutton.asc -O- | apt-key add - \
&& apt-get update \
&& apt-get -y install bbb-swftools
# clean default webapps
RUN rm -r webapps/*
COPY --from=builder /source/target/bigbluebutton-0.9.0.war webapps/bigbluebutton.war
RUN unzip -q webapps/bigbluebutton.war -d webapps/bigbluebutton \
&& rm webapps/bigbluebutton.war
COPY turn-stun-servers.xml.tmpl turn-stun-servers.xml.tmpl
COPY docker-entrypoint.sh /usr/local/bin/
CMD [ "dockerize", \
"-template", "turn-stun-servers.xml.tmpl:webapps/bigbluebutton/WEB-INF/spring/turn-stun-servers.xml", \
"docker-entrypoint.sh" ]