Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-listers-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-lister | RUN pip install swh-lister | ||||
RUN useradd -ms /bin/bash swh | RUN useradd -ms /bin/bash swh | ||||
COPY entrypoint.sh / | |||||
COPY entrypoint.sh / | |||||
COPY lister.yml /home/swh/.config/swh/ | COPY lister.yml /home/swh/.config/swh/ | ||||
RUN chown -R swh: /home/swh/.config/ | RUN chown -R swh: /home/swh/.config/ | ||||
USER swh | USER swh | ||||
ENTRYPOINT ["/entrypoint.sh"] | ENTRYPOINT ["/entrypoint.sh"] |