diff --git a/Dockerfile b/Dockerfile index 4481abeb0918967505178f163e79689d4baa89b4..e376a1975fe28eb7507f90e5bc700329717b429c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,6 @@ RUN npm install COPY . /app RUN npm run build -- --prod --aot --base-href $BASE_HREF - - FROM nginx COPY docker-entrypoint.sh /docker-entrypoint.sh COPY adapt-config-json.sh /adapt-config-json.sh @@ -34,5 +32,6 @@ ENV DASHBOARD_BASE_URL=http://localhost:4200 \ IDRA_BASE_URL=http://localhost:8080 \ DATALET_BASE_URL=http://localhost/deep/deep-components/creator.html \ TRAFFICSIMSERVER_API_BASE_URL=http://localhost:8081 \ - DASHBOARD_CTRL_API_BASE_URL=http://localhost:8085 - + DASHBOARD_CTRL_API_BASE_URL=http://localhost:8085 \ + BUS_OD_API_BASE_URL=http://localhost:8000/busesod + diff --git a/adapt-config-json.sh b/adapt-config-json.sh index e6107152773829c8311aa25474d750bbd63090a4..d97180f5bcc928350116edce5b7a892c9f278ac5 100644 --- a/adapt-config-json.sh +++ b/adapt-config-json.sh @@ -17,3 +17,4 @@ sed -i -e "s|__IDRA_BASE_URL__|$IDRA_BASE_URL|g" $FILE sed -i -e "s|__DATALET_BASE_URL__|$DATALET_BASE_URL|g" $FILE sed -i -e "s|__TRAFFICSIMSERVER_API_BASE_URL__|$TRAFFICSIMSERVER_API_BASE_URL|g" $FILE sed -i -e "s|__DASHBOARD_CTRL_API_BASE_URL__|$DASHBOARD_CTRL_API_BASE_URL|g" $FILE +sed -i -e "s|__BUS_OD_API_BASE_URL__|$BUS_OD_API_BASE_URL|g" $FILE