feat(build): bundle frontend with vite and matrix-js-sdk, fix HOST in server.js
Build and Publish / Metadata (push) Successful in 1s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 22s

This commit is contained in:
mats committed 2026-09-22 10:29:03 +02:00
1 parent 5ce3b46bab
commit b6cc9f3465
8 files changed
+3421 -9

No files matched your search

+4 -2
View File
@@ -6,9 +6,9 @@ WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
RUN npm ci
COPY server.js tracing.js ./
COPY server.js tracing.js vite.config.mjs ./
COPY public/ ./public/
# Inject build release into index.html if APP_RELEASE is specified
@@ -18,6 +18,8 @@ RUN if [ -n "${APP_RELEASE}" ]; then \
sed -i "s/window.__APP_RELEASE__ || \"dev\"/\"${APP_RELEASE}\"/g" ./public/index.html; \
fi
RUN npm run build && npm prune --omit=dev
ENV PORT=8080 \
HOST=0.0.0.0