Skip to content

Commit

Permalink
fix for chrome images not installing
Browse files Browse the repository at this point in the history
  • Loading branch information
apricot13 committed Jun 17, 2024
1 parent b948b36 commit 17cc159
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ RUN curl -s https://googlechromelabs.github.io/chrome-for-testing/last-known-goo
# chrome
RUN CHROME_URL=$(jq -r '.channels.Stable.downloads.chrome[] | select(.platform=="linux64") | .url' /tmp/versions.json) && \
wget -q --continue -O /tmp/chrome-linux64.zip $CHROME_URL && \
unzip -j /tmp/chrome-linux64.zip -d /opt/chrome
unzip -j -o /tmp/chrome-linux64.zip -d /opt/chrome

RUN chmod +x /opt/chrome/chrome

# chromedriver
RUN CHROMEDRIVER_URL=$(jq -r '.channels.Stable.downloads.chromedriver[] | select(.platform=="linux64") | .url' /tmp/versions.json) && \
wget -q --continue -O /tmp/chromedriver-linux64.zip $CHROMEDRIVER_URL && \
unzip -j /tmp/chromedriver-linux64.zip -d /opt/chromedriver && \
unzip -j -o /tmp/chromedriver-linux64.zip -d /opt/chromedriver && \
chmod +x /opt/chromedriver/chromedriver

# Clean up
Expand All @@ -85,6 +85,7 @@ RUN echo 'export PATH="/opt/chrome:/opt/chromedriver:$PATH"' >> ~/.bashrc
RUN echo "Chrome: " && chrome --version
RUN echo "Chromedriver: " && chromedriver --version

RUN chown -R outpost-user:outpost-user /home/outpost-user/.cache
USER outpost-user

# set $HOME to outpost-user path for this non-interactive session
Expand Down

0 comments on commit 17cc159

Please sign in to comment.