FROM mcr.microsoft.com/playwright:v1.49.1-noble

WORKDIR /workspace
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh

# Bun is required by the project's package.json `packageManager` pin.
RUN curl -fsSL https://bun.sh/install | bash \
    && ln -s /root/.bun/bin/bun /usr/local/bin/bun

ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
