2021-10-06 13:43:53 +02:00
|
|
|
FROM node:14-alpine
|
2020-06-30 19:44:20 +02:00
|
|
|
|
|
|
|
# download dockerize
|
|
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
2021-10-06 13:43:53 +02:00
|
|
|
RUN wget -q https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
2020-06-30 19:44:20 +02:00
|
|
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& apk add subversion \
|
|
|
|
&& mkdir /app \
|
|
|
|
&& adduser -D -u 2002 -g webhooks webhooks \
|
|
|
|
&& chown webhooks:webhooks /app
|
|
|
|
|
|
|
|
USER webhooks
|
|
|
|
|
|
|
|
|
2021-12-21 14:23:59 +01:00
|
|
|
ENV TAG v2.4.0
|
2020-06-30 19:44:20 +02:00
|
|
|
RUN svn checkout https://github.com/bigbluebutton/bigbluebutton/tags/$TAG/bbb-webhooks /app \
|
|
|
|
&& rm -rf /app/.svn \
|
|
|
|
&& cd /app && npm install --production
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
COPY config.yml /app/config/default.yml.tmpl
|
|
|
|
|
|
|
|
ENTRYPOINT /entrypoint.sh
|
|
|
|
|
|
|
|
|