FROM python:3.11-slim WORKDIR /src # Runtime dependencies RUN apt-get update && apt-get install -y poppler-utils RUN apt-get install -y libmagic1 # Install worker as a package COPY worker_file_import worker_file_import COPY pyproject.toml ./ RUN pip install . --no-cache-dir # A valid default command must be set in the Dockerfile and not .arkindex.yml # for this worker to work in Arkindex file import processes CMD ["worker-file-import"]