From 56d8f768e4f1653cbcc0d75ec9f74c8d1240803c Mon Sep 17 00:00:00 2001 From: chandi Date: Mon, 25 Nov 2024 17:21:23 +0100 Subject: [PATCH] graphql-actions dev mode --- dev.env | 1 + docker-compose.tmpl.yml | 2 -- mod/bbb-graphql-actions/Dockerfile | 6 +++--- mod/bbb-graphql-actions/Dockerfile.dev | 2 ++ 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dev.env b/dev.env index 3a43775..1a30f32 100644 --- a/dev.env +++ b/dev.env @@ -2,6 +2,7 @@ # enables # - html5: webpack dev server +# - bbb-grahql-actions: watch & restart DEV_MODE=true # accept self signed certificates diff --git a/docker-compose.tmpl.yml b/docker-compose.tmpl.yml index 24f9531..b897d1f 100644 --- a/docker-compose.tmpl.yml +++ b/docker-compose.tmpl.yml @@ -295,8 +295,6 @@ services: depends_on: - redis - apps-akka - environment: - BBB_REDIS_HOST: redis networks: bbb-net: ipv4_address: 10.7.7.30 diff --git a/mod/bbb-graphql-actions/Dockerfile b/mod/bbb-graphql-actions/Dockerfile index ab1b441..66ac9b8 100644 --- a/mod/bbb-graphql-actions/Dockerfile +++ b/mod/bbb-graphql-actions/Dockerfile @@ -18,8 +18,6 @@ RUN cd /src/dist && \ # ------------------------------ FROM node:22-bookworm-slim -COPY --from=builder /src/dist /app - RUN groupadd -g 2062 app \ && useradd -m -u 2063 -g app app @@ -28,7 +26,9 @@ USER app WORKDIR /app ENV SERVER_HOST 0.0.0.0 - +ENV BBB_REDIS_HOST redis ENV NODE_ENV=production +COPY --from=builder /src/dist /app + CMD [ "node", "/app/bbb-graphql-actions.js" ] \ No newline at end of file diff --git a/mod/bbb-graphql-actions/Dockerfile.dev b/mod/bbb-graphql-actions/Dockerfile.dev index 52147f7..22babbb 100644 --- a/mod/bbb-graphql-actions/Dockerfile.dev +++ b/mod/bbb-graphql-actions/Dockerfile.dev @@ -11,4 +11,6 @@ ENTRYPOINT [ "/dev-entrypoint.sh" ] WORKDIR /app ENV SERVER_HOST 0.0.0.0 +ENV BBB_REDIS_HOST redis + CMD [ "npm install && npm start" ] \ No newline at end of file