2024-11-17 21:08:28 +01:00
|
|
|
FROM node:23-alpine
|
2024-11-17 20:57:54 +01:00
|
|
|
|
|
|
|
ARG VERSION
|
|
|
|
|
|
|
|
LABEL version="${VERSION}" \
|
|
|
|
Maintainer="H2 invent GmbH" \
|
|
|
|
Description="Docker Image Jitsi Admin Websocket" \
|
|
|
|
org.opencontainers.version="${VERSION}" \
|
|
|
|
org.opencontainers.image.title="Jitsi Admin" \
|
|
|
|
org.opencontainers.image.license="AGPLv3" \
|
|
|
|
org.opencontainers.image.vendor="H2 invent GmbH" \
|
|
|
|
org.opencontainers.image.authors="Emanuel Holzmann <support@h2-invent.com>" \
|
|
|
|
org.opencontainers.image.source="https://github.com/h2-invent/jitsi-admin" \
|
|
|
|
org.opencontainers.image.documentation="https://meetling.de" \
|
|
|
|
org.opencontainers.image.url="https://jitsi-admin.de"
|
|
|
|
|
2024-11-17 21:08:28 +01:00
|
|
|
WORKDIR /usr/src/app
|
2024-11-17 20:57:54 +01:00
|
|
|
|
2024-11-18 15:07:55 +01:00
|
|
|
RUN apk --no-cache add \
|
|
|
|
curl \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
2024-11-17 20:57:54 +01:00
|
|
|
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \
|
|
|
|
&& unzip artifact.zip \
|
|
|
|
&& chown -R nobody . \
|
2024-11-17 21:08:28 +01:00
|
|
|
&& rm artifact.zip
|
|
|
|
|
|
|
|
EXPOSE 3000
|
2024-11-17 20:57:54 +01:00
|
|
|
|
2024-11-18 14:50:11 +01:00
|
|
|
USER node
|
|
|
|
|
2024-11-17 21:08:28 +01:00
|
|
|
ENV WEBSOCKET_SECRET=CHANGEME
|
2024-11-17 20:57:54 +01:00
|
|
|
|
2024-11-17 21:08:28 +01:00
|
|
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:3000/healthz || exit 1
|
2024-11-17 20:57:54 +01:00
|
|
|
|
2024-11-17 21:08:28 +01:00
|
|
|
CMD [ "node", "." ]
|