diff --git a/dockerfiles/swh-indexer-worker/Dockerfile b/dockerfiles/swh-indexer-worker/Dockerfile new file mode 100644 --- /dev/null +++ b/dockerfiles/swh-indexer-worker/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3 + +RUN export DEBIAN_FRONTEND=noninteractive && \ + apt-get update && \ + apt-get install -y \ + libsystemd-dev + +RUN pip install swh-indexer swh-scheduler +COPY indexer/ / +COPY entrypoint.sh / + +# Celery does not want to run as root with 'pickle' enabled. +RUN useradd -m swh-worker +USER swh-worker:swh-worker + +ENTRYPOINT ["/entrypoint.sh"]