change image to node:23 image
This commit is contained in:
parent
041b2fff61
commit
fee5305305
1 changed files with 10 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM erseco/alpine-php-webserver:3.20.5
|
FROM node:23-alpine
|
||||||
|
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
|
|
||||||
|
@ -14,28 +14,20 @@ LABEL version="${VERSION}" \
|
||||||
org.opencontainers.image.documentation="https://meetling.de" \
|
org.opencontainers.image.documentation="https://meetling.de" \
|
||||||
org.opencontainers.image.url="https://jitsi-admin.de"
|
org.opencontainers.image.url="https://jitsi-admin.de"
|
||||||
|
|
||||||
USER root
|
USER node
|
||||||
RUN apk --no-cache add \
|
|
||||||
unzip \
|
|
||||||
nodejs \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
RUN rm -r /etc/service/nginx \
|
WORKDIR /usr/src/app
|
||||||
&& 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 \
|
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/websocket.zip -O artifact.zip \
|
||||||
&& unzip artifact.zip \
|
&& unzip artifact.zip \
|
||||||
&& chown -R nobody . \
|
&& chown -R nobody . \
|
||||||
&& chmod -R 700 .
|
&& chmod -R 700 . \
|
||||||
|
&& rm artifact.zip
|
||||||
|
|
||||||
RUN rm artifact.zip
|
EXPOSE 3000
|
||||||
|
|
||||||
USER nobody
|
ENV WEBSOCKET_SECRET=CHANGEME
|
||||||
|
|
||||||
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:8080/healthz || exit 1
|
HEALTHCHECK --timeout=10s CMD curl --silent --fail http://127.0.0.1:3000/healthz || exit 1
|
||||||
|
|
||||||
|
CMD [ "node", "." ]
|
Loading…
Add table
Reference in a new issue