Fixup the env variables for the webui launch
This commit is contained in:
+3
-3
@@ -53,9 +53,9 @@ services:
|
|||||||
platforms:
|
platforms:
|
||||||
- linux/arm64
|
- linux/arm64
|
||||||
args:
|
args:
|
||||||
# WebSocket URL of the GStreamer signaling server, baked into the frontend bundle.
|
# Hostname of the GStreamer signaling server, baked into the frontend bundle.
|
||||||
# Override with: VITE_WEBRTC_WS_URL=ws://raspberrypi.local:8443
|
# Override with: VITE_WEBRTC_HOST=raspbot-v2.local
|
||||||
VITE_WEBRTC_WS_URL: ${VITE_WEBRTC_WS_URL:-}
|
VITE_WEBRTC_HOST: ${VITE_WEBRTC_HOST:-}
|
||||||
image: raspbot_v2_webui:latest
|
image: raspbot_v2_webui:latest
|
||||||
network_mode: host
|
network_mode: host
|
||||||
ipc: host
|
ipc: host
|
||||||
|
|||||||
+4
-4
@@ -6,10 +6,10 @@ COPY frontend/package.json ./
|
|||||||
RUN npm install
|
RUN npm install
|
||||||
COPY frontend/ ./
|
COPY frontend/ ./
|
||||||
|
|
||||||
# Passed in via docker-compose build args so the URL is baked into the bundle.
|
# Passed in via docker-compose build args so the host is baked into the bundle.
|
||||||
# e.g. VITE_WEBRTC_WS_URL=ws://raspberrypi.local:8443
|
# e.g. VITE_WEBRTC_HOST=raspbot-v2.local
|
||||||
ARG VITE_WEBRTC_WS_URL
|
ARG VITE_WEBRTC_HOST
|
||||||
ENV VITE_WEBRTC_WS_URL=${VITE_WEBRTC_WS_URL}
|
ENV VITE_WEBRTC_HOST=${VITE_WEBRTC_HOST}
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user