Skip to content

Instantly share code, notes, and snippets.

@mrprompt
Created September 26, 2019 18:25
Show Gist options
  • Save mrprompt/e51d327722988e9ad11571f1651fbb67 to your computer and use it in GitHub Desktop.
Save mrprompt/e51d327722988e9ad11571f1651fbb67 to your computer and use it in GitHub Desktop.
DockerFile to Chormium
FROM python:2-alpine
MAINTAINER inomurko@rezolve.com
RUN apk add --no-cache \
FROM python:2-alpine
MAINTAINER XXXXX
RUN apk add --no-cache \
make \
gcc \
openssl \
openssl-dev \
libc-dev \
linux-headers \
chromium \
chromium-chromedriver \
udev \
libexif \
xvfb \
&& mkdir -p /app
COPY requirements.txt /requirements.txt
RUN pip install --upgrade pip \
&& rm -rf $HOME/.cache/*
RUN pip install -r requirements.txt \
&& rm -rf $HOME/.cache/*
COPY . /app
WORKDIR /app
# Xvfb -ac :99 -screen 0 1280x1024x16 &
# export DISPLAY=:99
# chromium-browser --headless --disable-gpu --no-sandbox http://www.google.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment