cacode commited on
Commit
3ee24f9
·
verified ·
1 Parent(s): 5d1728c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -80,7 +80,10 @@ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
80
  playwright
81
 
82
  # Codex CLI + Playwright + Playwright MCP
83
- RUN npm install -g @openai/codex playwright @playwright/mcp && npm cache clean --force
 
 
 
84
 
85
  # Playwright browsers + system deps (Chromium/Firefox/WebKit)
86
  RUN mkdir -p "${PLAYWRIGHT_BROWSERS_PATH}" \
@@ -106,4 +109,4 @@ WORKDIR /home/coder
106
 
107
  EXPOSE 7860
108
  ENTRYPOINT ["/usr/bin/tini", "--"]
109
- CMD ["/usr/local/bin/start.sh"]
 
80
  playwright
81
 
82
  # Codex CLI + Playwright + Playwright MCP
83
+ # Remove pip-installed playwright CLI to avoid npm binary conflict
84
+ RUN rm -f /usr/local/bin/playwright \
85
+ && npm install -g @openai/codex playwright @playwright/mcp \
86
+ && npm cache clean --force
87
 
88
  # Playwright browsers + system deps (Chromium/Firefox/WebKit)
89
  RUN mkdir -p "${PLAYWRIGHT_BROWSERS_PATH}" \
 
109
 
110
  EXPOSE 7860
111
  ENTRYPOINT ["/usr/bin/tini", "--"]
112
+ CMD ["/usr/local/bin/start.sh"]