kopia lustrzana https://github.com/bellingcat/auto-archiver
docker initial files
rodzic
29e1872e87
commit
c8fa077df7
|
@ -0,0 +1,17 @@
|
|||
logs/
|
||||
browsertrix-tmp/
|
||||
tmp*/
|
||||
temp/
|
||||
.DS_Store
|
||||
__pycache__/
|
||||
local_archive/
|
||||
config*.json
|
||||
config.json
|
||||
*.env
|
||||
credentials.json
|
||||
secrets/
|
||||
instaloader/
|
||||
instaloader.session
|
||||
vk_config*.json
|
||||
anon*
|
||||
geckodriver.log
|
|
@ -0,0 +1,20 @@
|
|||
From python:3.10
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
# TODO: use custom ffmpeg builds instead of apt-get install
|
||||
RUN pip install --upgrade pip && \
|
||||
pip install pipenv && \
|
||||
apt-get update && \
|
||||
apt-get install -y gcc ffmpeg fonts-noto firefox-esr && \
|
||||
wget https://github.com/mozilla/geckodriver/releases/download/v0.32.0/geckodriver-v0.32.0-linux64.tar.gz && \
|
||||
tar -xvzf geckodriver* -C /usr/bin && \
|
||||
chmod +x /usr/bin/geckodriver && \
|
||||
rm geckodriver-v* && \
|
||||
export PATH=$PATH:/usr/bin/ && \
|
||||
pipenv install --python=3.10
|
||||
|
||||
CMD ["pipenv", "run", "python", "auto_archive.py"]
|
Ładowanie…
Reference in New Issue