feat(build): bundle frontend with vite and matrix-js-sdk, fix HOST in server.js
This commit is contained in:
1 parent
5ce3b46bab
commit
b6cc9f3465
8 files changed
+3421
-9
No files matched your search
+4
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user