2022-04-03 23:18:15 +02:00
|
|
|
ARG BBB_BUILD_TAG
|
|
|
|
FROM gitlab.senfcall.de:5050/senfcall-public/docker-bbb-build:$BBB_BUILD_TAG AS builder
|
2020-05-26 17:30:37 +02:00
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
# RUN groupadd -g 2000 meteor && useradd -m -u 2001 -g meteor meteor
|
|
|
|
# USER meteor
|
2020-04-09 22:33:27 +02:00
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
ARG TAG_HTML5
|
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG_HTML5/bigbluebutton-html5 /source \
|
|
|
|
&& cd /source \
|
|
|
|
&& meteor npm ci --production \
|
|
|
|
&& METEOR_DISABLE_OPTIMISTIC_CACHING=1 meteor build --architecture os.linux.x86_64 --allow-superuser --directory /app \
|
|
|
|
&& rm -rf /source
|
2020-04-09 22:33:27 +02:00
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
RUN cd /app/bundle/programs/server \
|
2020-05-26 17:30:37 +02:00
|
|
|
&& npm install --production
|
|
|
|
|
2023-03-21 12:59:59 +01:00
|
|
|
RUN mkdir -p /app/bundle/programs/web.browser/app/files && \
|
|
|
|
cp /app/bundle/programs/server/npm/node_modules/@fontsource/*/files/*.woff* /app/bundle/programs/web.browser/app/files/
|
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
RUN sed -i "s/VERSION/$TAG_HTML5/" /app/bundle/programs/web.browser/head.html \
|
|
|
|
&& find /app/bundle/programs/web.browser -name '*.js' -exec gzip -k -f -9 '{}' \; \
|
|
|
|
&& find /app/bundle/programs/web.browser -name '*.css' -exec gzip -k -f -9 '{}' \; \
|
|
|
|
&& find /app/bundle/programs/web.browser -name '*.wasm' -exec gzip -k -f -9 '{}' \;
|
|
|
|
|
2020-05-26 17:30:37 +02:00
|
|
|
# ------------------------------
|
|
|
|
|
2023-03-21 12:49:00 +01:00
|
|
|
FROM node:14-bullseye-slim
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y gosu
|
|
|
|
|
|
|
|
# add user & group
|
|
|
|
RUN groupadd -g 2000 meteor \
|
|
|
|
&& useradd -m -u 2001 -g meteor meteor
|
2020-05-26 17:30:37 +02:00
|
|
|
|
2022-05-08 19:45:59 +02:00
|
|
|
COPY --from=alangecker/bbb-docker-base-java /usr/local/bin/dockerize /usr/local/bin/dockerize
|
2022-04-03 23:18:15 +02:00
|
|
|
COPY --from=builder --chown=meteor:meteor /app/bundle /app
|
2020-04-09 22:33:27 +02:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
2021-11-27 17:39:23 +01:00
|
|
|
COPY bbb-html5.yml /app/bbb-html5.yml.tmpl
|
2020-12-22 00:41:01 +01:00
|
|
|
|
2020-04-09 22:33:27 +02:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|