File size: 657 Bytes
da02f8b
f02bed7
 
ca5a790
f02bed7
0c6b1ac
 
dec831b
 
 
 
 
 
f02bed7
dec831b
 
8646038
 
f02bed7
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 apt install -y curl
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 which google-chrome

#RUN bunx puppeteer browsers install chrome
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome
RUN echo $PUPPETEER_EXECUTABLE_PATH

RUN bun install
COPY . .

EXPOSE 7860
CMD [ "bun", "run", "main.ts" ]