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 postgresql-client + +RUN pip install swh-indexer +RUN useradd -ms /bin/bash swh +COPY entrypoint.sh / + +COPY mimetype.yml /home/swh/.config/swh/indexer/ +RUN chown -R swh: /home/swh/.config/ + +USER swh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/dockerfiles/swh-indexer-worker/indexer.yml b/dockerfiles/swh-indexer-worker/mimetype.yml rename from dockerfiles/swh-indexer-worker/indexer.yml rename to dockerfiles/swh-indexer-worker/mimetype.yml