Skip to content

Commit c0c7725

Browse files
committed
identify memory leaks. Attempt 2
1 parent 4310503 commit c0c7725

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,5 @@ jobs:
7777
-e AUTH_TRUST_HOST=true \
7878
-e NEXT_PUBLIC_URI='${{ vars.NEXT_PUBLIC_URI }}' \
7979
-p 3000:3000 \
80+
-p 127.0.0.1:9229:9229 \
8081
ghcr.io/gitranks/gitranks-ui:latest

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
4949

5050
USER nextjs
5151

52-
EXPOSE 3000
52+
EXPOSE 3000 9229
5353

54-
ENV PORT 3000
55-
ENV HOSTNAME "0.0.0.0"
54+
ENV PORT=3000
55+
ENV HOSTNAME=0.0.0.0
5656

57-
CMD ["node", "--trace-gc", "--inspect=0.0.0.0:9229", "--max-old-space-size=1800", "server.js"]
57+
ENV NODE_OPTIONS="--trace-gc --max-old-space-size=1800"
58+
59+
CMD ["node", "--inspect=127.0.0.1:9229", "server.js"]

0 commit comments

Comments
 (0)