change post to 8080

This commit is contained in:
holzi1005 2024-11-17 20:57:54 +01:00
parent 35fd552ec3
commit cb1b6fdfb1

View file

@ -1,7 +1,6 @@
FROM erseco/alpine-php-webserver:3.20.5 FROM erseco/alpine-php-webserver:3.20.5
ARG VERSION= ARG VERSION
ARG WEBDIR=/var/www/html
LABEL version="${VERSION}" \ LABEL version="${VERSION}" \
Maintainer="H2 invent GmbH" \ Maintainer="H2 invent GmbH" \
@ -19,27 +18,23 @@ USER root
RUN apk --no-cache add \ RUN apk --no-cache add \
unzip \ unzip \
nodejs \ nodejs \
cronie && rm -rf /var/cache/apk/*
RUN rm -r /etc/service/nginx \ RUN rm -r /etc/service/nginx \
&& rm -r /etc/service/php && rm -r /etc/service/php
RUN mkdir /etc/service/websocket \ RUN mkdir /etc/service/websocket \
&& echo "#!/bin/sh -e" > /etc/service/websocket/run \ && echo "#!/bin/sh -e" > /etc/service/websocket/run \
&& echo "exec 2>&1 /usr/bin/node ${WEBDIR}" >> /etc/service/websocket/run \ && echo "exec 2>&1 PORT=8080 /usr/bin/node ." >> /etc/service/websocket/run \
&& chown -R nobody:nobody /etc/service/websocket \ && chown -R nobody:nobody /etc/service/websocket \
&& chmod +x /etc/service/websocket/run && chmod +x /etc/service/websocket/run
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \ RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \
&& unzip artifact.zip -d ${WEBDIR} \ && unzip artifact.zip \
&& chown -R nobody ${WEBDIR} \ && chown -R nobody . \
&& chmod -R 700 ${WEBDIR} && chmod -R 700 .
RUN apk del unzip \ RUN rm artifact.zip
&& rm artifact.zip \
&& rm -rf /var/cache/apk/*
EXPOSE 3000
USER nobody USER nobody