internetarchive / iari

Import workflows for the Wikipedia Citations Database
GNU General Public License v3.0
12 stars 9 forks source link

Get IARI to run with a docker container #901

Open mojomonger opened 1 year ago

mojomonger commented 1 year ago

contents of Dockerfile that worked on 7/12/2023 in my local environment:

FROM python:3.10-slim

LABEL maintainer="Dennis Priskorn <priskorn@riseup.net>"

WORKDIR /app

RUN pip install --no-cache-dir poetry && poetry config virtualenvs.create false

COPY pyproject.toml .

RUN poetry install --no-interaction --no-ansi
# maybe add -v?

COPY . ./

# Setup all the needed directories
RUN mkdir -p /tmp/wikicitations-api json/articles json/references json/dois json/urls json/xhtmls json/pdfs

CMD ["./debug_app.py"]