auto-archiver/Dockerfile

33 wiersze
1.1 KiB
Docker
Czysty Zwykły widok Historia

2022-11-08 13:59:35 +00:00
# stage 1 - all dependencies
2022-10-31 17:10:55 +00:00
From python:3.10
2022-11-02 16:51:32 +00:00
WORKDIR /app
2022-10-31 17:10:55 +00:00
# TODO: use custom ffmpeg builds instead of apt-get install
RUN pip install --upgrade pip && \
pip install pipenv && \
apt-get update && \
2022-11-08 13:59:35 +00:00
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 && \
2022-11-02 16:51:32 +00:00
tar -xvzf geckodriver* -C /usr/local/bin && \
chmod +x /usr/local/bin/geckodriver && \
2022-11-08 13:59:35 +00:00
rm geckodriver-v*
# install docker for WACZ
2022-11-08 15:55:33 +00:00
# TODO: currently disabled see https://github.com/bellingcat/auto-archiver/issues/66
# RUN curl -fsSL https://get.docker.com | sh
2022-11-08 13:59:35 +00:00
# RUN git clone https://github.com/bellingcat/auto-archiver
# TODO: avoid copying unnecessary files, including .git
COPY Pipfile Pipfile.lock ./
RUN pipenv install --python=3.10 --system --deploy
ENV IS_DOCKER=1
2022-11-08 15:55:33 +00:00
COPY ./src/ .
2022-10-31 17:10:55 +00:00
2022-11-02 16:51:32 +00:00
# CMD ["pipenv", "run", "python", "auto_archive.py"]
2022-11-08 13:59:35 +00:00
ENTRYPOINT ["python", "auto_archive.py"]
# ENTRYPOINT ["docker-entrypoint.sh"]
2022-11-02 16:51:32 +00:00
# should be executed with 2 volumes
2022-11-08 13:59:35 +00:00
# docker run -v /var/run/docker.sock:/var/run/docker.sock -v $PWD/secrets:/app/secrets -v $PWD/local_archive:/app/local_archive aa --help