Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cf2542a

Browse files
committed
feat: update Dockerfile to use environment variables for LeetCode site and session
1 parent d9498bd commit cf2542a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎Dockerfile‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ COPY . .
1616
# Build the application
1717
RUN npm run build
1818

19+
ENV LEETCODE_SITE=global \
20+
LEETCODE_SESSION=
21+
1922
# Expose any port if needed (MCP uses stdio, so not required for now)
2023

2124
# Set the default command
22-
CMD [ "node", "build/index.js", "--site", "global" ]
25+
CMD node build/index.js \
26+
--site ${LEETCODE_SITE:-global} \
27+
--session ${LEETCODE_SESSION}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /