Skip to content

Commit

Permalink
πŸ”Š Move log level config to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Aug 22, 2024
1 parent 95c982e commit cf5d0a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/ponder/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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 . .
Expand All @@ -39,4 +40,4 @@ COPY --from=install /temp/prod/node_modules node_modules

# run the app
EXPOSE 42069/tcp
ENTRYPOINT [ "pnpm", "run", "start", "--trace"]
ENTRYPOINT [ "pnpm", "run", "start"]

0 comments on commit cf5d0a5

Please sign in to comment.