diff --git a/health/micro-ui/web/health-dss/Dockerfile b/health/micro-ui/web/health-dss/Dockerfile index a5ddd1eac0f..c14e7d9b88c 100644 --- a/health/micro-ui/web/health-dss/Dockerfile +++ b/health/micro-ui/web/health-dss/Dockerfile @@ -2,6 +2,12 @@ FROM node:14-alpine3.16 AS build RUN apk update RUN apk add --no-cache 'git>2.30.0' ARG WORK_DIR +ARG GIT_COMMIT=unknown +ARG GIT_BRANCH=unknown + +ENV GIT_COMMIT=$GIT_COMMIT +ENV GIT_BRANCH=$GIT_BRANCH + WORKDIR /app ENV NODE_OPTIONS="--max-old-space-size=4792" ENV YARN_DEBUG=true @@ -37,7 +43,7 @@ RUN yarn build:webpack FROM nginx:mainline-alpine #FROM ghcr.io/egovernments/nginx:mainline-alpine -ENV WORK_DIR=/var/web/dashboard-ui +ENV WORK_DIR=/var/web/health-dss RUN mkdir -p ${WORK_DIR} diff --git a/health/micro-ui/web/micro-ui-internals/packages/modules/health-dss/nginx.conf b/health/micro-ui/web/micro-ui-internals/packages/modules/health-dss/nginx.conf new file mode 100644 index 00000000000..81c8360bb34 --- /dev/null +++ b/health/micro-ui/web/micro-ui-internals/packages/modules/health-dss/nginx.conf @@ -0,0 +1,12 @@ +server +{ + listen 80; + underscores_in_headers on; + + location /dashboard-ui + { + root /var/web; + index index.html index.htm; + try_files $uri $uri/ /dashboard-ui/index.html; + } +} \ No newline at end of file diff --git a/health/micro-ui/web/package.json b/health/micro-ui/web/package.json index a7d97b36809..a28ec15c3fb 100644 --- a/health/micro-ui/web/package.json +++ b/health/micro-ui/web/package.json @@ -10,6 +10,7 @@ "workspaces": [ "micro-ui-internals/packages/modules/campaign-manager", "micro-ui-internals/packages/modules/health-hrms", + "micro-ui-internals/packages/modules/health-dss", "micro-ui-internals/packages/modules/pgr" ], "homepage": "/workbench-ui", @@ -21,6 +22,7 @@ "@egovernments/digit-ui-module-hcmworkbench": "0.1.5", "@egovernments/digit-ui-module-utilities": "1.0.12", "@egovernments/digit-ui-module-campaign-manager": "0.4.0", + "@egovernments/digit-ui-module-health-dss": "0.0.1", "@egovernments/digit-ui-module-health-pgr": "0.0.1", "@egovernments/digit-ui-react-components": "1.8.24", "@egovernments/digit-ui-svg-components": "1.0.21",