Skip to content

Commit 5c19cf7

Browse files
author
Florian Treml
committed
Adding PUBLIC_PATH build arg
1 parent 2c3a9be commit 5c19cf7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

connectors/rasa/client/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM node:lts-alpine
22
ARG RASA_ENDPOINT=http://localhost:5005
33
ARG RASA_PATH=/socket.io
4+
ARG PUBLIC_PATH=/
45

56
RUN apk add --no-cache --virtual .build-deps curl sed python make g++
67

@@ -9,7 +10,7 @@ RUN curl -L -o rvi.zip "https://github.com/RasaHQ/rasa-voice-interface/archive/m
910
WORKDIR /app/rasa-voice-interface-master
1011
RUN chown -R node /app/rasa-voice-interface-master \
1112
&& sed -i "s|'http://localhost:5005'|'${RASA_ENDPOINT}', options: { path: '${RASA_PATH}' }|g" src/main.js \
12-
&& sed -i "s|integrity: false|integrity: false, publicPath: '/rasa-demo-voice/'|g" vue.config.js \
13+
&& sed -i "s|integrity: false|integrity: false, publicPath: '${PUBLIC_PATH}'|g" vue.config.js \
1314
&& npm install --no-optional && npm install serve && npm run-script build
1415
RUN apk del .build-deps
1516

connectors/rasa/client/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
args:
77
RASA_ENDPOINT: https://demo.botiumbox.com
88
RASA_PATH: /rasa-demo/socket.io
9+
PUBLIC_PATH: /rasa-demo-voice/
910
image: botium/botium-speech-rasa-voice
1011
restart: always
1112
ports:

0 commit comments

Comments
 (0)