From 316a8899306f98204b6ffc7f6ed2b44f3a3b6a71 Mon Sep 17 00:00:00 2001 From: Ezra Khairan Permana Date: Mon, 7 Oct 2024 13:34:54 +0700 Subject: [PATCH] fix: coba di peek dirnya dulu --- apps/processor/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/processor/Dockerfile b/apps/processor/Dockerfile index 92d4c45..c694a7e 100644 --- a/apps/processor/Dockerfile +++ b/apps/processor/Dockerfile @@ -61,6 +61,7 @@ EOF USER processor +RUN mkdir -p /vote-processor/logs COPY --from=builder --chown=processor:nodejs /vote-processor /vote-processor WORKDIR /vote-processor @@ -82,6 +83,9 @@ void consumeMessagesFromQueue(logsDirectory); EOF # Create the logs directory with correct permissions -RUN mkdir -p /vote-processor/logs && chown -R processor:nodejs /vote-processor/logs + +# DEBUGGING PURPOSE ONLY +# peek the directory +RUN tree /vote-processor CMD ["node", "index.js"]