FROM apify/actor-node-playwright-chrome:20 # Install Bun locally (non-root, Apify-safe) RUN curl -fsSL https://bun.sh/install | bash ENV PATH="/home/myuser/.bun/bin:$PATH" WORKDIR /home/myuser # Copy everything INCLUDING dist/ COPY --chown=myuser . ./ # Install production deps only RUN bun install --production ENV APP_ENV="prod" ENV NODE_ENV=production ENV PORT=7860 EXPOSE 7860 # Run prebuilt output CMD ["bun", "run", "start:prod:tsdown"]