Add a Docker image and compose file for the web proxy

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 21:41:42 +02:00
co-authored by Claude Opus 5.5
parent 826542ed8a
commit 5159d8a518
5 changed files with 54 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# The browser version: web app and proxy in one image.
# docker compose up -d --build
FROM node:22-slim AS build
WORKDIR /src
COPY package.json package-lock.json ./
# No install scripts: the Electron download they would trigger is only needed for the desktop app
RUN npm ci --ignore-scripts
COPY . .
RUN npm run build:web
FROM node:22-slim
WORKDIR /app
COPY --from=build /src/dist-web ./dist-web
COPY --from=build /src/dist-proxy ./dist-proxy
USER node
ENV MUMH5_PORT=8080
EXPOSE 8080/tcp 3478/udp
CMD ["node", "dist-proxy/proxy.mjs"]