Skip to content

Commit

Permalink
Only provide base and browser tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Sep 26, 2024
1 parent 7c3985b commit f4e8295
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
target: [no-browser, chromedriver, playwright, full-browser]
target: [no-browser, browser]
platform: [linux/amd64, linux/arm64]
steps:
- name: Checkout repository
Expand Down
26 changes: 13 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@ RUN echo 'export PATH=~/.local/bin:$PATH' >> /root/.bashrc && \
echo '/usr/local/bin/devhub.sh' >> /root/.bashrc && \
echo '/usr/local/bin/devhub.sh' >> /home/d2x/.bashrc

# Stage for ChromeDriver
FROM base AS chromedriver
# # Stage for ChromeDriver
# FROM base AS chromedriver

# Install ChromeDriver
RUN apt-get install -y wget unzip && \
wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
rm /tmp/chromedriver.zip
# # Install ChromeDriver
# RUN apt-get install -y wget unzip && \
# wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \
# unzip /tmp/chromedriver.zip -d /usr/local/bin/ && \
# rm /tmp/chromedriver.zip

# Stage for Playwright
FROM base AS playwright
# # Stage for Playwright
# FROM base AS playwright

# Install Playwright
RUN npm install -g playwright && \
npx playwright install
# # Install Playwright
# RUN npm install -g playwright && \
# npx playwright install

# Stage for full browser support (ChromeDriver + Playwright)
FROM base AS full-browser
FROM base AS browser

# Install ChromeDriver
RUN apt-get install -y wget unzip && \
Expand Down

0 comments on commit f4e8295

Please sign in to comment.