fix(docker): run browser gateway with bun

This commit is contained in:
Acbox
2026-03-07 15:49:27 +08:00
parent 3b2b821a41
commit 635d2847be
+6 -1
View File
@@ -19,6 +19,11 @@ FROM mcr.microsoft.com/playwright:v1.50.0-noble
WORKDIR /app
RUN apt-get update && apt-get install -y unzip curl && \
curl -fsSL https://bun.sh/install | bash && \
ln -s /root/.bun/bin/bun /usr/local/bin/bun && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/apps/browser/dist /app/dist
COPY --from=builder /build/apps/browser/node_modules /app/node_modules
COPY --from=builder /build/apps/browser/package.json /app/package.json
@@ -31,4 +36,4 @@ EXPOSE 8083
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
CMD curl -sf http://127.0.0.1:8083/health || exit 1
CMD ["node", "dist/index.js"]
CMD ["bun", "run", "dist/index.js"]