From 0aba387807a5b2997f405c0134ad6da72c06dae7 Mon Sep 17 00:00:00 2001 From: SayNothingToday <64765048+SayNothingToday@users.noreply.github.com> Date: Mon, 4 May 2020 12:16:55 +0800 Subject: [PATCH] Create Dockerfile --- docker/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docker/Dockerfile diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..ce88899 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,16 @@ +FROM python:slim +RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \ + && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list +RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U \ + && pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple + +RUN apt-get update \ + && apt-get install -y wget ca-certificates \ + && wget -O - 'https://github.com/yoshiko2/AV_Data_Capture/archive/master.tar.gz' | tar xz \ + && mv AV_Data_Capture-master /jav \ + && cd /jav \ + && ( pip install --no-cache-dir -r requirements.txt || true ) \ + && pip install --no-cache-dir requests pyquery lxml Beautifulsoup4 pillow \ + && apt-get purge -y wget + +WORKDIR /jav