Created
April 19, 2019 16:28
-
-
Save richdownie/61e397db344ded82d38fb6a68392aaa4 to your computer and use it in GitHub Desktop.
Sample FSAR Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.5.3 | |
RUN apt-get update \ | |
&& apt-get install libxi6 \ | |
libnss3 \ | |
libgconf-2-4 \ | |
fonts-liberation \ | |
libappindicator3-1 \ | |
libasound2 \ | |
libatk-bridge2.0-0 \ | |
libatk1.0-0 \ | |
libcups2 \ | |
libgtk-3-0 \ | |
libx11-xcb1 \ | |
libxss1 \ | |
lsb-release \ | |
xdg-utils \ | |
libxcomposite1 -y | |
ENV CHROME_FLAGS --no-sandbox --disable-dev-shm-usage --headless | |
RUN curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ | |
&& dpkg -i google-chrome.deb \ | |
&& sed -i 's|HERE/chrome\"|HERE/chrome\" $CHROME_FLAGS|g' /opt/google/chrome/google-chrome \ | |
&& rm google-chrome.deb | |
RUN mkdir /app && mkdir /app/output | |
WORKDIR /app | |
ADD . . | |
RUN bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment