feat: AI Pull Request action — opencode 自動產生 PR 並通過 AI review #2
+2
-1
@@ -10,9 +10,10 @@ RUN npm install -g opencode-ai
|
|||||||
|
|
||||||
# 複製 Node.js 應用程式
|
# 複製 Node.js 應用程式
|
||||||
|
Ghost marked this conversation as resolved
|
|||||||
COPY app/ /app/
|
COPY app/ /app/
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
# 應用程式無第三方相依套件,僅在有 package-lock 時安裝
|
# 應用程式無第三方相依套件,僅在有 package-lock 時安裝
|
||||||
RUN if [ -f /app/package-lock.json ]; then cd /app && npm ci --omit=dev; fi
|
RUN if [ -f package-lock.json ]; then npm ci --omit=dev; fi
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user
嚴重等級:🟡 警告
審查員:Assassin
問題:Dockerfile 中使用全域
npm install存在供應鏈風險。建議:使用 lockfile(如
package-lock.json)確保依賴版本一致性,並定期審查更新。