From 17d9bf694fdb28eb355583875162bd9e5876fcd0 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Wed, 6 Sep 2023 17:07:10 +0100 Subject: [PATCH] fix docker image so as not to remove browsertrix files --- Dockerfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85e4b7e..b63aa90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,8 @@ FROM webrecorder/browsertrix-crawler:latest ENV RUNNING_IN_DOCKER=1 -WORKDIR /app +WORKDIR /app/auto-archiver -# TODO: use custom ffmpeg builds instead of apt-get install RUN pip install --upgrade pip && \ pip install pipenv && \ add-apt-repository ppa:mozillateam/ppa && \ @@ -18,7 +17,6 @@ RUN pip install --upgrade pip && \ rm geckodriver-v* -# TODO: avoid copying unnecessary files, including .git COPY Pipfile* ./ # install from pipenv, with browsertrix-only requirements RUN pipenv install && \ @@ -27,11 +25,6 @@ RUN pipenv install && \ # doing this at the end helps during development, builds are quick COPY ./src/ . -# TODO: figure out how to make volumes not be root, does it depend on host or dockerfile? -# RUN useradd --system --groups sudo --shell /bin/bash archiver && chown -R archiver:sudo . -# USER archiver - - ENTRYPOINT ["pipenv", "run", "python3", "-m", "auto_archiver"] # should be executed with 2 volumes (3 if local_storage is used)