forked from jgehrcke/github-repo-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.Dockerfile
21 lines (17 loc) · 941 Bytes
/
base.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10-slim-buster
RUN apt-get update && apt-get install -y -q --no-install-recommends \
gnupg curl git jq moreutils ca-certificates unzip less tree pandoc \
&& curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
&& apt-get update && apt-get install -y -q --no-install-recommends \
google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
RUN pip install pip==23.2.1
# requirements-fa.txt: dependencies for fetch.py & analyze.py
# for pdf.py: Note Explore bumping selenium to 4.x
COPY requirements-fa.txt .
RUN pip install -r requirements-fa.txt \
&& pip install selenium==4.13.0 webdriver_manager==4.0.1 # Dependencies for pdf.py \
&& pip cache purge
RUN echo "biggest dirs"
RUN cd / && du -ha . | sort -r -h | head -n 50 || true