Keep debug scripts out of browser install layer

This commit is contained in:
Codex
2026-07-08 01:06:25 +00:00
parent cbe7cf05ce
commit 99fcf11b87
+1 -1
View File
@@ -25,11 +25,11 @@ RUN apt-get update \
COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist COPY --from=build /app/dist ./dist
COPY --from=build /app/dist-client ./dist-client COPY --from=build /app/dist-client ./dist-client
COPY scripts ./scripts
COPY package.json ./ COPY package.json ./
RUN ./node_modules/.bin/playwright install --with-deps --only-shell chromium \ RUN ./node_modules/.bin/playwright install --with-deps --only-shell chromium \
&& npm cache clean --force \ && npm cache clean --force \
&& rm -rf /var/lib/apt/lists/* /tmp/* && rm -rf /var/lib/apt/lists/* /tmp/*
COPY scripts ./scripts
EXPOSE 8080 EXPOSE 8080
CMD ["node", "dist/server.js"] CMD ["node", "dist/server.js"]