Skip to content

Commit

Permalink
installing Gauge
Browse files Browse the repository at this point in the history
  • Loading branch information
mbradleySoftrams authored Dec 16, 2024
1 parent e551f75 commit f4f43dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,19 @@ ENV PATH="${NPM_CONFIG_PREFIX}/bin:${PATH}"
ENV TAIKO_BROWSER_ARGS=--no-sandbox,--start-maximized,--disable-dev-shm-usage
ENV headless_chrome=true
ENV TAIKO_SKIP_DOCUMENTATION=true

# Set working directory
WORKDIR /gauge

# Create an unprivileged user to run Taiko tests
RUN groupadd -r gauge && useradd -r -g gauge -G audio,video gauge && \
mkdir -p /home/gauge/.npm-packages/lib && \
chown -R gauge:gauge /home/gauge /gauge

USER gauge

RUN npm install -g @getgauge/cli \
&& npm install \
&& gauge install \
&& gauge install screenshot \
&& gauge config check_updates false

0 comments on commit f4f43dd

Please sign in to comment.