2023-02-14 23:15:32 +08:00
|
|
|
ARG BBB_BUILD_TAG
|
2023-02-18 21:40:00 +08:00
|
|
|
FROM onenetcom/docker-bbb-build:$BBB_BUILD_TAG AS builder
|
2023-02-14 23:15:32 +08:00
|
|
|
|
|
|
|
# RUN groupadd -g 2000 meteor && useradd -m -u 2001 -g meteor meteor
|
|
|
|
# USER meteor
|
|
|
|
|
|
|
|
ARG TAG_HTML5
|
2023-02-19 03:10:44 +08:00
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG_HTML5/bigbluebutton-html5
|
|
|
|
COPY zh_CN.json //bigbluebutton-html5/public/locales
|
|
|
|
RUN cd /bigbluebutton-html5 \
|
2023-02-14 23:15:32 +08:00
|
|
|
&& meteor npm ci --production \
|
|
|
|
&& METEOR_DISABLE_OPTIMISTIC_CACHING=1 meteor build --architecture os.linux.x86_64 --allow-superuser --directory /app \
|
2023-02-18 21:44:50 +08:00
|
|
|
&& rm -rf /bigbluebutton-html5
|
2023-02-14 23:15:32 +08:00
|
|
|
|
|
|
|
RUN cd /app/bundle/programs/server \
|
|
|
|
&& npm install --production
|
|
|
|
|
|
|
|
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 '{}' \;
|
|
|
|
|
|
|
|
# ------------------------------
|
|
|
|
|
|
|
|
FROM node:14.19.1-alpine
|
|
|
|
|
|
|
|
RUN addgroup -g 2000 meteor && \
|
|
|
|
adduser -D -u 2001 -G meteor meteor && \
|
|
|
|
apk add su-exec
|
|
|
|
COPY --from=alangecker/bbb-docker-base-java /usr/local/bin/dockerize /usr/local/bin/dockerize
|
|
|
|
COPY --from=builder --chown=meteor:meteor /app/bundle /app
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
COPY bbb-html5.yml /app/bbb-html5.yml.tmpl
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|