-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (20 loc) · 933 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:3
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
google-chrome-stable \
unzip \
&& rm -rf /var/lib/apt/lists/*
# install chromedriver
RUN wget -qO /tmp/chromedriver.zip \
"http://chromedriver.storage.googleapis.com/$(wget -qO- chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip" \
&& unzip -qq /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
# set display port to avoid crash
ENV DISPLAY=:99
# upgrade pip
RUN python -m pip install --no-cache-dir -U pip \
&& pip install --no-cache-dir pixiv-bulk-downloader
ENTRYPOINT ["pbd"]