2020-04-09 22:33:27 +02:00
|
|
|
# TODO: build from github repo with node:12
|
|
|
|
FROM node:8-stretch
|
|
|
|
|
|
|
|
ENV NODE_ENV production
|
2020-04-10 13:29:06 +02:00
|
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
2020-04-09 22:33:27 +02:00
|
|
|
|
2020-04-10 13:29:06 +02:00
|
|
|
# install dockerize
|
|
|
|
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
|
2020-04-09 22:33:27 +02:00
|
|
|
|
2020-04-10 13:29:06 +02:00
|
|
|
RUN apt-get update && apt-get install -y wget binutils
|
2020-04-09 22:33:27 +02:00
|
|
|
RUN useradd -m meteor
|
|
|
|
|
2020-04-10 13:29:06 +02:00
|
|
|
# download & install bbb-html5 package manually
|
|
|
|
RUN PACKAGE_PATH=$(curl -s https://ubuntu.bigbluebutton.org/xenial-220/dists/bigbluebutton-xenial/main/binary-amd64/Packages | grep -E 'Filename.*html5' | awk '{print $2}') \
|
|
|
|
&& wget https://ubuntu.bigbluebutton.org/xenial-220/$PACKAGE_PATH \
|
2020-04-09 22:33:27 +02:00
|
|
|
&& ar x bbb-html5_*.deb \
|
|
|
|
&& tar -zxf data.tar.gz ./usr/share/meteor/bundle \
|
|
|
|
&& mv /usr/share/meteor/bundle /app \
|
|
|
|
&& rm -rf /app/programs/server/node_modules \
|
|
|
|
&& chown meteor:meteor /app/programs/server \
|
2020-04-10 13:29:06 +02:00
|
|
|
&& chown -R meteor:meteor /app/programs/server/assets/app/config \
|
2020-04-09 22:33:27 +02:00
|
|
|
&& rm /*.deb /*.tar.gz
|
|
|
|
|
|
|
|
USER meteor
|
|
|
|
RUN cd /app/programs/server && npm install && npm cache clear --force
|
|
|
|
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2020-04-23 20:32:58 +02:00
|
|
|
COPY settings.yml /app/programs/server/assets/app/config/settings.yml.tmpl
|
2020-04-09 22:33:27 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|