Skip to content

Commit

Permalink
feat: adds newrelic monitoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
lopesdasilva committed Feb 20, 2024
1 parent 73b6351 commit c886427
Show file tree
Hide file tree
Showing 3 changed files with 1,205 additions and 17 deletions.
5 changes: 4 additions & 1 deletion ethereal-nexus-dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ RUN npm run build
FROM base AS runner
WORKDIR /app

RUN npm install @newrelic/next

ENV NODE_ENV production
# Uncomment the following line in case you want to disable telemetry during runtime.
# ENV NEXT_TELEMETRY_DISABLED 1
Expand All @@ -50,10 +52,11 @@ COPY --from=builder /app/.env ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static


USER nextjs

EXPOSE 3000

ENV PORT 3000

CMD ["node", "server.js"]
CMD ["node", "-r", "@newrelic/next", "server.js"]
Loading

0 comments on commit c886427

Please sign in to comment.