From cf5d0a58f6c3a267649194900efdbb69151a4b13 Mon Sep 17 00:00:00 2001 From: KONFeature Date: Thu, 22 Aug 2024 16:48:07 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Move=20log=20level=20config=20to?= =?UTF-8?q?=20dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ponder/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ponder/Dockerfile b/packages/ponder/Dockerfile index 440af0b..e34aabf 100644 --- a/packages/ponder/Dockerfile +++ b/packages/ponder/Dockerfile @@ -1,5 +1,5 @@ # Base image is node-22 -FROM node:22-slim as base +FROM node:22-slim AS base # Setup pnpm ENV PNPM_HOME="/pnpm" @@ -27,7 +27,8 @@ RUN cd /temp/prod && pnpm --mount=type=cache,id=pnpm,target=/pnpm/store pnpm ins FROM base AS release # Set env to production -ENV NODE_ENV production +ENV NODE_ENV=production +ENV PONDER_LOG_LEVEL=trace # copy production dependencies and source code into final image COPY . . @@ -39,4 +40,4 @@ COPY --from=install /temp/prod/node_modules node_modules # run the app EXPOSE 42069/tcp -ENTRYPOINT [ "pnpm", "run", "start", "--trace"] \ No newline at end of file +ENTRYPOINT [ "pnpm", "run", "start"] \ No newline at end of file