dockerization complete

This commit is contained in:
msramalho
2022-11-08 15:55:33 +00:00
parent 81eadd4672
commit 390b84eb22
33 changed files with 3 additions and 4 deletions

View File

@@ -15,16 +15,15 @@ RUN pip install --upgrade pip && \
# install docker for WACZ
RUN curl -fsSL https://get.docker.com | sh
# TODO: currently disabled see https://github.com/bellingcat/auto-archiver/issues/66
# RUN curl -fsSL https://get.docker.com | sh
# RUN git clone https://github.com/bellingcat/auto-archiver
# TODO: avoid copying unnecessary files, including .git
# COPY ./src/ .
COPY Pipfile Pipfile.lock ./
RUN pipenv install --python=3.10 --system --deploy
# TODO: to avoid copying pipfile lock it should be on the .dockerignore
ENV IS_DOCKER=1
COPY . .
COPY ./src/ .
# CMD ["pipenv", "run", "python", "auto_archive.py"]
ENTRYPOINT ["python", "auto_archive.py"]