mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-08-16 23:51:06 +02:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
54bddd967a | |||
c7ea1f208d | |||
5ff79af7ca | |||
d04a9a5edb | |||
915292181b | |||
ab63e10e92 | |||
733e3d19c3 | |||
e33b842ba4 | |||
a556e5e0c3 | |||
1235affefa | |||
2e20485fb5 |
@ -11,24 +11,7 @@ RUN cd /bbb-playback && npm install && npm run-script build
|
|||||||
FROM bigbluebutton/bbb-build:$BBB_BUILD_TAG AS builder-html5
|
FROM bigbluebutton/bbb-build:$BBB_BUILD_TAG AS builder-html5
|
||||||
COPY --from=src-html5 / /source
|
COPY --from=src-html5 / /source
|
||||||
RUN cd /source && CI=true npm ci
|
RUN cd /source && CI=true npm ci
|
||||||
RUN cd /source && DISABLE_ESLINT_PLUGIN=true npm run build-safari && npm run build
|
RUN cd /source && DISABLE_ESLINT_PLUGIN=true npm run build
|
||||||
RUN cd /source/dist && \
|
|
||||||
HASH=$(ls | grep -Eo 'bundle\.[a-f0-9]{20}\.js' | head -n 1 | grep -Eo '[a-f0-9]{20}') && \
|
|
||||||
if [ -z "$HASH" ]; then \
|
|
||||||
echo "Bundle hash not found."; \
|
|
||||||
else \
|
|
||||||
for FILE in *.safari.js *.safari.js.map; do \
|
|
||||||
if [[ "$FILE" == *"$HASH"* ]]; then \
|
|
||||||
continue; \
|
|
||||||
fi; \
|
|
||||||
PREFIX="${FILE%%.safari.js*}"; \
|
|
||||||
SUFFIX="${FILE#*.safari.js}"; \
|
|
||||||
NEW_NAME="${PREFIX}.${HASH}.safari.js${SUFFIX}"; \
|
|
||||||
echo "Renaming $FILE → $NEW_NAME"; \
|
|
||||||
mv "$FILE" "$NEW_NAME"; \
|
|
||||||
done; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
RUN find /source/dist -name '*.js' -exec gzip -k -f -9 '{}' \; \
|
RUN find /source/dist -name '*.js' -exec gzip -k -f -9 '{}' \; \
|
||||||
&& find /source/dist -name '*.css' -exec gzip -k -f -9 '{}' \; \
|
&& find /source/dist -name '*.css' -exec gzip -k -f -9 '{}' \; \
|
||||||
&& find /source/dist -name '*.wasm' -exec gzip -k -f -9 '{}' \;
|
&& find /source/dist -name '*.wasm' -exec gzip -k -f -9 '{}' \;
|
||||||
|
@ -36,7 +36,7 @@ function get_tag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# https://hub.docker.com/r/bigbluebutton/bbb-build
|
# https://hub.docker.com/r/bigbluebutton/bbb-build
|
||||||
BBB_BUILD_TAG=v3.0.x-release
|
BBB_BUILD_TAG=v3.0.x-release--2025-02-06-143818
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
|
Reference in New Issue
Block a user