2022-04-03 23:18:15 +02:00
|
|
|
ARG BBB_BUILD_TAG
|
2023-09-12 18:23:22 +02:00
|
|
|
FROM bigbluebutton/bbb-build:$BBB_BUILD_TAG AS builder
|
2020-05-26 20:03:42 +02:00
|
|
|
|
2021-11-27 17:38:40 +01:00
|
|
|
|
|
|
|
RUN useradd --uid 2004 --user-group webrtc-sfu
|
2020-04-12 20:20:50 +02:00
|
|
|
|
2023-11-29 22:17:49 +01:00
|
|
|
COPY --from=source / /app
|
2020-04-12 20:20:50 +02:00
|
|
|
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
2022-04-03 23:18:15 +02:00
|
|
|
RUN cd /app \
|
|
|
|
&& cp config/default.example.yml config/production.yml \
|
2020-04-12 20:20:50 +02:00
|
|
|
&& npm install --unsafe-perm \
|
2021-11-27 17:38:40 +01:00
|
|
|
&& npm cache clear --force \
|
|
|
|
&& rm -rf node_modules/mediasoup/worker/out/Release/subprojects \
|
|
|
|
&& rm -rf node_modules/mediasoup/worker/out/Release/mediasoup-worker.p \
|
|
|
|
&& rm -rf node_modules/mediasoup/worker/out/Release/deps
|
2022-04-03 23:18:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
# =============================
|
2024-01-07 23:48:34 +01:00
|
|
|
FROM node:18-bookworm-slim
|
2022-04-03 23:18:15 +02:00
|
|
|
RUN useradd --uid 2004 --user-group webrtc-sfu
|
|
|
|
ENV NODE_ENV production
|
|
|
|
|
|
|
|
COPY --from=builder /app /app
|
2023-03-21 12:49:00 +01:00
|
|
|
RUN mkdir /home/webrtc-sfu && chown -R webrtc-sfu:webrtc-sfu /app/config /home/webrtc-sfu
|
2022-04-03 23:18:15 +02:00
|
|
|
|
2020-10-29 17:49:34 +01:00
|
|
|
USER webrtc-sfu
|
2022-04-17 12:43:46 +02:00
|
|
|
WORKDIR /app
|
2020-04-12 20:20:50 +02:00
|
|
|
CMD [ "npm", "start" ]
|