FROM registry.fedoraproject.org/fedora:28 MAINTAINER Patrick Uiterwijk VOLUME ["/repos"] RUN mkdir /code RUN dnf install -y python2-devel python-setuptools python-nose python2-bcrypt python-alembic \ python-arrow python-binaryornot python-bleach python-blinker \ python-chardet python-cryptography python-docutils python-flask \ python-flask-wtf python-markdown python-psutil \ python-pygit2 python-fedora python-openid python-openid-cla \ python-openid-teams python-straight-plugin python-wtforms python-munch \ python-enum34 python-redis python-sqlalchemy systemd gitolite3 python-filelock \ python-fedora-flask python2-pillow python2-psycopg2 RUN dnf install -y python2-celery WORKDIR /code ENTRYPOINT ["/usr/bin/celery", "-A", "pagure.lib.tasks", "worker", "--loglevel", "info"] # Code injection is last to make optimal use of caches VOLUME ["/code"] # Openshift: COPY / /code VOLUME ["/attachments"] # Ideally this would run as non-root, but that needs the /repos owned correctly ENV C_FORCE_ROOT true