FROM oven/bun:1 | |
WORKDIR /code | |
RUN apt update && apt install -y git | |
RUN git clone https://github.com/0zl/phr.git . | |
RUN bash scripts/dependencies_no_browser.sh | |
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb | |
RUN rm google-chrome-stable_current_amd64.deb | |
RUN echo "Chrome: " && google-chrome --version | |
RUN bun install | |
COPY . . | |
EXPOSE 7860 | |
CMD [ "bun", "run", "main.ts" ] |