change post to 8080
This commit is contained in:
parent
35fd552ec3
commit
cb1b6fdfb1
1 changed files with 40 additions and 45 deletions
|
@ -1,46 +1,41 @@
|
|||
FROM erseco/alpine-php-webserver:3.20.5
|
||||
|
||||
ARG VERSION=
|
||||
ARG WEBDIR=/var/www/html
|
||||
|
||||
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"
|
||||
|
||||
USER root
|
||||
RUN apk --no-cache add \
|
||||
unzip \
|
||||
nodejs \
|
||||
cronie
|
||||
|
||||
RUN rm -r /etc/service/nginx \
|
||||
&& rm -r /etc/service/php
|
||||
|
||||
RUN mkdir /etc/service/websocket \
|
||||
&& echo "#!/bin/sh -e" > /etc/service/websocket/run \
|
||||
&& echo "exec 2>&1 /usr/bin/node ${WEBDIR}" >> /etc/service/websocket/run \
|
||||
&& chown -R nobody:nobody /etc/service/websocket \
|
||||
&& chmod +x /etc/service/websocket/run
|
||||
|
||||
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \
|
||||
&& unzip artifact.zip -d ${WEBDIR} \
|
||||
&& chown -R nobody ${WEBDIR} \
|
||||
&& chmod -R 700 ${WEBDIR}
|
||||
|
||||
RUN apk del unzip \
|
||||
&& rm artifact.zip \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
USER nobody
|
||||
|
||||
FROM erseco/alpine-php-webserver:3.20.5
|
||||
|
||||
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"
|
||||
|
||||
USER root
|
||||
RUN apk --no-cache add \
|
||||
unzip \
|
||||
nodejs \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN rm -r /etc/service/nginx \
|
||||
&& rm -r /etc/service/php
|
||||
|
||||
RUN mkdir /etc/service/websocket \
|
||||
&& echo "#!/bin/sh -e" > /etc/service/websocket/run \
|
||||
&& echo "exec 2>&1 PORT=8080 /usr/bin/node ." >> /etc/service/websocket/run \
|
||||
&& chown -R nobody:nobody /etc/service/websocket \
|
||||
&& chmod +x /etc/service/websocket/run
|
||||
|
||||
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \
|
||||
&& unzip artifact.zip \
|
||||
&& chown -R nobody . \
|
||||
&& chmod -R 700 .
|
||||
|
||||
RUN rm artifact.zip
|
||||
|
||||
USER nobody
|
||||
|
||||
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:3000/healthz || exit 1
|
Loading…
Reference in a new issue