Skip to content

Commit 0d8a4f0

Browse files
Copilotkobenguyent
andcommitted
Fix docker compose configuration for internal test server
Co-authored-by: kobenguyent <[email protected]>
1 parent bb93036 commit 0d8a4f0

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ RUN apt-get update && \
1212
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
1313
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
1414
# installs, work.
15-
RUN apt-get update && apt-get install -y gnupg wget && \
16-
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
17-
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
18-
apt-get update && \
19-
apt-get install -y google-chrome-stable --no-install-recommends && \
20-
rm -rf /var/lib/apt/lists/*
15+
# Skip Chrome installation for now as Playwright image already has browsers
16+
RUN echo "Skipping Chrome installation - using Playwright browsers"
2117

2218

2319
# Add pptr user.
@@ -38,7 +34,7 @@ RUN mkdir /tests
3834
WORKDIR /tests
3935
# Install puppeteer so it's available in the container.
4036
RUN npm i puppeteer@$(npm view puppeteer version) && npx puppeteer browsers install chrome
41-
RUN google-chrome --version
37+
# RUN chromium-browser --version
4238

4339
# Install playwright browsers
4440
RUN npx playwright install

test/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ services:
6969
json_server:
7070
<<: *test-service
7171
entrypoint: []
72-
command: npm run json-server
72+
command: npm run test-server
7373
ports:
7474
- '8010:8010' # Expose to host
7575
restart: always # Automatically restart the container if it fails or becomes unhealthy

0 commit comments

Comments
 (0)