mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-12-03 21:48:33 +01:00
72bd71c8bf
- debian: bullseye -> bookworm - ubuntu: 20.04 -> 22.04 - ruby: 2.7 -> 3.0
26 lines
682 B
Docker
26 lines
682 B
Docker
FROM node:18-bookworm-slim AS builder
|
|
|
|
|
|
RUN apt-get update && apt-get install -y git wget
|
|
|
|
RUN wget -q https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64 -O /usr/bin/yq \
|
|
&& chmod +x /usr/bin/yq
|
|
|
|
COPY --from=src / /bbb-webhooks
|
|
RUN cd /bbb-webhooks && npm install --production
|
|
|
|
RUN chmod 777 /bbb-webhooks/config
|
|
# ------------------------------
|
|
|
|
FROM node:18-bookworm-slim
|
|
RUN useradd --uid 2004 --user-group bbb-webhooks
|
|
|
|
COPY --from=builder /usr/bin/yq /usr/bin/yq
|
|
COPY --from=builder /bbb-webhooks /bbb-webhooks
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
RUN mkdir /bbb-webhooks/log && chmod 777 /bbb-webhooks/log
|
|
USER bbb-webhooks
|
|
ENTRYPOINT /entrypoint.sh
|
|
|