Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-indexer-worker/Dockerfile
FROM python:3.6 | FROM python:3.6 | ||||
RUN export DEBIAN_FRONTEND=noninteractive && \ | RUN export DEBIAN_FRONTEND=noninteractive && \ | ||||
apt-get update && \ | apt-get update && \ | ||||
apt-get install -y \ | apt-get install -y \ | ||||
libsystemd-dev postgresql-client | libsystemd-dev postgresql-client | ||||
RUN pip install --upgrade pip setuptools wheel | |||||
RUN pip install swh-indexer | RUN pip install swh-indexer | ||||
RUN useradd -ms /bin/bash swh | RUN useradd -ms /bin/bash swh | ||||
COPY entrypoint.sh / | USER swh | ||||
COPY mimetype.yml /home/swh/.config/swh/indexer/ | COPY entrypoint.sh / | ||||
COPY fossology_license.yml /home/swh/.config/swh/indexer/ | COPY indexer.yml /home/swh/ | ||||
COPY origin_head.yml /home/swh/.config/swh/indexer/ | |||||
COPY revision_metadata.yml /home/swh/.config/swh/indexer/ | |||||
COPY origin_intrinsic_metadata.yml /home/swh/.config/swh/indexer/ | |||||
RUN chown -R swh: /home/swh/.config/ | |||||
USER swh | |||||
ENTRYPOINT ["/entrypoint.sh"] | ENTRYPOINT ["/entrypoint.sh"] |