docker initial files

pull/72/head
msramalho 2022-10-31 17:10:55 +00:00
rodzic 29e1872e87
commit c8fa077df7
2 zmienionych plików z 37 dodań i 0 usunięć

17
.dockerignore 100644
Wyświetl plik

@ -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

20
Dockerfile 100644
Wyświetl plik

@ -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"]