Update Dockerfile
This commit is contained in:
parent
7fd9ff922a
commit
f1aa06f764
1 changed files with 11 additions and 1 deletions
12
Dockerfile
12
Dockerfile
|
@ -1,7 +1,7 @@
|
||||||
# Use the official Bun image
|
# Use the official Bun image
|
||||||
FROM oven/bun:1.1
|
FROM oven/bun:1.1
|
||||||
|
|
||||||
# Install dependencies for Puppeteer (Chromium)
|
# Install dependencies for Puppeteer and Chrome/Chromium
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
wget \
|
wget \
|
||||||
|
@ -22,9 +22,19 @@ RUN apt-get update && \
|
||||||
libxdamage1 \
|
libxdamage1 \
|
||||||
libxrandr2 \
|
libxrandr2 \
|
||||||
xdg-utils \
|
xdg-utils \
|
||||||
|
chromium \
|
||||||
|
gnupg \
|
||||||
--no-install-recommends && \
|
--no-install-recommends && \
|
||||||
|
# Install Google Chrome stable
|
||||||
|
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
|
||||||
|
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y google-chrome-stable && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Set Puppeteer executable path (prefer google-chrome-stable, fallback to chromium)
|
||||||
|
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue