From 38a41c453826db7800ba96e40bdac7c2d541b389 Mon Sep 17 00:00:00 2001 From: da-Kai Date: Sat, 2 Mar 2024 16:01:05 +0100 Subject: [PATCH] use install --- tools/docker/backend/ui/Dockerfile | 6 +++++- tools/docker/edge/ui/Dockerfile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/docker/backend/ui/Dockerfile b/tools/docker/backend/ui/Dockerfile index 15297eb9fdc..fda28995740 100644 --- a/tools/docker/backend/ui/Dockerfile +++ b/tools/docker/backend/ui/Dockerfile @@ -8,7 +8,7 @@ ARG UI_VERSION WORKDIR /src/ui -RUN npm ci +RUN npm install RUN node_modules/.bin/ng build -c "${UI_VERSION}" ### Build ui base @@ -30,4 +30,8 @@ COPY tools/docker/backend/ui/root/ / VOLUME /etc/nginx VOLUME /var/log/nginx +ENV BACKEND_HOST 127.0.0.1 +ENV BACKEND_WEBSOCKET_PORT 8075 +ENV BACKEND_REST_API_PORT 8084 + EXPOSE 80 443 \ No newline at end of file diff --git a/tools/docker/edge/ui/Dockerfile b/tools/docker/edge/ui/Dockerfile index eb9a13ca475..4e7684913ee 100644 --- a/tools/docker/edge/ui/Dockerfile +++ b/tools/docker/edge/ui/Dockerfile @@ -8,7 +8,7 @@ ARG UI_VERSION WORKDIR /src/ui -RUN npm ci +RUN npm install RUN node_modules/.bin/ng build -c "${UI_VERSION}" ### Build ui base