Skip to content

Commit 6c1d81c

Browse files
committed
removed chrome instalation from docker
1 parent f1ae497 commit 6c1d81c

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.env.example

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,4 @@ BING_SYSTEM_MESSAGE="(system)[#instructions]
265265
LOG_MESSAGES="false" # Accepted values are "true" or "false"
266266

267267
# Path to the database file used by prisma. Leave this as is if you don't know what you're doing.
268-
DATABASE_URL="file:./bot.db"
269-
270-
# This is optional. if you're having issues with puppeteer's bundled chromium,
271-
# You can set this to your chrome executable path e.g: /usr/bin/google-chrome-stable
272-
PUPPETEER_EXECUTABLE_PATH=""
268+
DATABASE_URL="file:./bot.db"

Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ WORKDIR /usr/src/app
66

77
# Install Chromium and its dependencies
88
RUN apt-get update && apt-get install -y \
9-
chromium \
10-
chromium-driver \
119
&& rm -rf /var/lib/apt/lists/*
1210

13-
# Set the PUPPETEER_EXECUTABLE_PATH environment variable
14-
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
15-
1611
# Copy package.json and pnpm-lock.yaml into the working directory
1712
COPY package.json pnpm-lock.yaml ./
1813

@@ -29,4 +24,4 @@ COPY . .
2924
RUN pnpm run build
3025

3126
# Command to run the application
32-
CMD ["pnpm", "dev"]
27+
CMD ["pnpm", "start"]

0 commit comments

Comments
 (0)