Sha256: 94bc9831186d56a6074629197e2ebac4a8828adc86028a3495b65bea1f6ce09a
Contents?: true
Size: 1.85 KB
Versions: 1
Compression:
Stored size: 1.85 KB
Contents
FROM ruby:2.4-jessie RUN apt-get update && apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ wget \ gnupg \ unzip \ --no-install-recommends \ && curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - \ && echo "deb https://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list \ && apt-get update && apt-get install -y google-chrome-stable \ fontconfig \ fonts-ipafont-gothic \ fonts-wqy-zenhei \ fonts-thai-tlwg \ fonts-kacst \ fonts-noto \ ttf-freefont \ --no-install-recommends \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN CHROME_STRING=$(/usr/bin/google-chrome-stable --version) \ && CHROME_VERSION_STRING=$(echo "${CHROME_STRING}" | grep -oP "\d+\.\d+\.\d+\.\d+") \ && CHROME_MAJOR_VERSION=$(echo "${CHROME_VERSION_STRING%%.*}") \ && wget --no-verbose -O /tmp/LATEST_RELEASE "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${CHROME_MAJOR_VERSION}" \ && CD_VERSION=$(cat "/tmp/LATEST_RELEASE") \ && rm /tmp/LATEST_RELEASE \ && CHROME_DRIVER_VERSION="${CD_VERSION}" \ && echo "Using chromedriver version: "$CD_VERSION \ && echo "Using Chrome version: "$CHROME_VERSION_STRING \ && wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CD_VERSION/chromedriver_linux64.zip \ && unzip /tmp/chromedriver_linux64.zip -d /usr/bin/ \ && rm /tmp/chromedriver_linux64.zip \ && chmod +x /usr/bin/chromedriver RUN groupadd -r chrome && useradd -r -g chrome -G audio,video chrome \ && mkdir -p /home/chrome && chown -R chrome:chrome /home/chrome \ && mkdir -p /opt/google/chrome && chown -R chrome:chrome /opt/google/chrome COPY . /data WORKDIR /data USER chrome ENV LANG C.UTF-8 ENV LANGUAGE C.UTF-8 ENV LC_ALL C.UTF-8 RUN bundle ENTRYPOINT ["/data/bin/yawast"]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yawast-0.7.0 | Dockerfile |