2023-03-21 12:49:00 +01:00
|
|
|
FROM node:16-bullseye-slim AS builder
|
2020-06-30 19:44:20 +02:00
|
|
|
|
|
|
|
|
2022-04-03 23:24:20 +02:00
|
|
|
RUN apt-get update && apt-get install -y git wget
|
2020-06-30 19:44:20 +02:00
|
|
|
|
2022-05-08 18:54:23 +02:00
|
|
|
RUN wget -q https://github.com/mikefarah/yq/releases/download/v4.25.1/yq_linux_amd64 -O /usr/bin/yq \
|
2022-04-03 23:24:20 +02:00
|
|
|
&& chmod +x /usr/bin/yq
|
2020-06-30 19:44:20 +02:00
|
|
|
|
2022-04-03 23:24:20 +02:00
|
|
|
COPY ./bbb-webhooks /bbb-webhooks
|
|
|
|
RUN cd /bbb-webhooks && npm install --production
|
2020-06-30 19:44:20 +02:00
|
|
|
|
2022-04-03 23:24:20 +02:00
|
|
|
RUN chmod 777 /bbb-webhooks/config
|
|
|
|
# ------------------------------
|
|
|
|
|
2023-03-21 12:49:00 +01:00
|
|
|
FROM node:16-bullseye-slim
|
2022-04-03 23:24:20 +02:00
|
|
|
RUN useradd --uid 2004 --user-group bbb-webhooks
|
|
|
|
|
|
|
|
COPY --from=builder /usr/bin/yq /usr/bin/yq
|
|
|
|
COPY --from=builder /bbb-webhooks /bbb-webhooks
|
2020-06-30 19:44:20 +02:00
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
2022-06-10 22:27:54 +02:00
|
|
|
RUN mkdir /bbb-webhooks/log && chmod 777 /bbb-webhooks/log
|
2022-04-03 23:24:20 +02:00
|
|
|
USER bbb-webhooks
|
2020-06-30 19:44:20 +02:00
|
|
|
ENTRYPOINT /entrypoint.sh
|
|
|
|
|