Skip to content

Commit

Permalink
Merge pull request #1596 from auslin-aot/pdf-download-fix
Browse files Browse the repository at this point in the history
Fix-pdf-download
  • Loading branch information
abhilash-aot authored Aug 31, 2023
2 parents 62f7ce1 + 48b26c3 commit fc21077
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions forms-flow-documents/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,24 @@ WORKDIR /forms-flow-documents/app
RUN apt-get update \
&& apt-get install -y gnupg2 \
&& apt-get install -y curl \
&& apt-get install -y wget \
&& apt-get install -y unzip \
&& apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*

# Install Chrome WebDriver
RUN CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \
mkdir -p /opt/chromedriver-$CHROMEDRIVER_VERSION && \
curl -sS -o /tmp/chromedriver_linux64.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver-$CHROMEDRIVER_VERSION && \
# Install Chrome WebDriver - version 116.0.5845.96
RUN mkdir -p /opt/chromedriver && \
curl -sS -o /tmp/chromedriver_linux64.zip https://d3nrunty6xywgz.cloudfront.net/chromedriver-linux64.zip && \
unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver && \
rm /tmp/chromedriver_linux64.zip && \
chmod +x /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver && \
ln -fs /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver /usr/local/bin/chromedriver
chmod +x /opt/chromedriver/chromedriver-linux64/chromedriver && \
ln -fs /opt/chromedriver/chromedriver-linux64/chromedriver /usr/local/bin/chromedriver

# Install Google Chrome
RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
apt-get -yqq update && \
apt-get -yqq install google-chrome-stable && \
rm -rf /var/lib/apt/lists/*
RUN wget --no-verbose -O /tmp/chrome.deb https://d3nrunty6xywgz.cloudfront.net/google-chrome-stable_116.0.5845.140-1_amd64.deb &&\
apt-get update && \
apt install -y /tmp/chrome.deb &&\
rm /tmp/chrome.deb


# set display port to avoid crash
Expand Down

0 comments on commit fc21077

Please sign in to comment.