Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmithabandari authored Feb 27, 2025
1 parent 8b1f4df commit f308b8a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:20.17

# Install required dependencies
# Ensure dependencies are installed before Chrome
RUN apt-get update && apt-get install -y \
wget \
curl \
Expand All @@ -9,19 +9,23 @@ RUN apt-get update && apt-get install -y \
rsync \
jinja-cli \
fonts-liberation \
libappindicator3-1 \
xdg-utils \
libasound2 \
&& rm -rf /var/lib/apt/lists/*
libappindicator3-1 || apt-get install -y libayatana-appindicator3-1 \
&& apt-get clean

# Install Google Chrome properly
# Install Google Chrome with proper dependency handling
RUN wget -q -O /tmp/google-chrome-stable_current_amd64.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
apt-get update && \
apt-get install -y ./tmp/google-chrome-stable_current_amd64.deb || apt-get -fy install && \
dpkg -i /tmp/google-chrome-stable_current_amd64.deb || apt-get -f install -y && \
rm -f /tmp/google-chrome-stable_current_amd64.deb

# Install Gauge CLI
RUN npm install -g @getgauge/cli

# Clean up
RUN rm -rf /var/lib/apt/lists/*




0 comments on commit f308b8a

Please sign in to comment.