Blame dev/containers/worker
|
Lubomír Sedlář |
1bbc64 |
FROM registry.fedoraproject.org/fedora:28
|
|
Patrick Uiterwijk |
57e33f |
MAINTAINER Patrick Uiterwijk <patrick@puiterwijk.org></patrick@puiterwijk.org>
|
|
Patrick Uiterwijk |
57e33f |
|
|
Patrick Uiterwijk |
57e33f |
VOLUME ["/repos"]
|
|
Patrick Uiterwijk |
57e33f |
RUN mkdir /code
|
|
Patrick Uiterwijk |
57e33f |
|
|
Lenka Segura |
322ad0 |
RUN dnf install -y python3-devel python3-setuptools python3-nose python3-bcrypt python3-alembic \
|
|
Lenka Segura |
55659e |
python3-arrow python3-binaryornot python3-bleach python3-blinker \
|
|
Lenka Segura |
55659e |
python3-chardet python3-cryptography python3-docutils python3-flask \
|
|
Lenka Segura |
322ad0 |
python3-flask-wtf python3-markdown python3-psutil \
|
|
Lenka Segura |
322ad0 |
python3-pygit2 python3-fedora python3-openid python3-openid-cla \
|
|
Lenka Segura |
322ad0 |
python3-openid-teams python3-straight-plugin python3-wtforms python3-munch \
|
|
Lenka Segura |
322ad0 |
python3-enum34 python3-redis python3-sqlalchemy systemd gitolite3 \
|
|
Lenka Segura |
322ad0 |
python3-filelock python3-bleach python3-cryptography \
|
|
Lenka Segura |
322ad0 |
python3-fedora-flask python3-pillow python3-psycopg2 python3-requests \
|
|
Lenka Segura |
322ad0 |
python3-blinker
|
|
Patrick Uiterwijk |
57e33f |
|
|
Lenka Segura |
322ad0 |
RUN dnf install -y python3-celery
|
|
Patrick Uiterwijk |
0f077b |
|
|
Julen Landa Alustiza |
562536 |
RUN ln -sf /usr/bin/python3 /usr/bin/python
|
|
Julen Landa Alustiza |
562536 |
|
|
Patrick Uiterwijk |
57e33f |
WORKDIR /code
|
|
Lenka Segura |
322ad0 |
ENTRYPOINT ["/usr/bin/celery-3", "-A", "pagure.lib.tasks", "worker", "--loglevel", "info"]
|
|
Patrick Uiterwijk |
57e33f |
|
|
Patrick Uiterwijk |
57e33f |
# Code injection is last to make optimal use of caches
|
|
Patrick Uiterwijk |
57e33f |
VOLUME ["/code"]
|
|
Patrick Uiterwijk |
57e33f |
# Openshift: COPY / /code
|
|
Patrick Uiterwijk |
cbb4a3 |
VOLUME ["/attachments"]
|
|
Patrick Uiterwijk |
c9d5be |
# Ideally this would run as non-root, but that needs the /repos owned correctly
|
|
Patrick Uiterwijk |
c9d5be |
ENV C_FORCE_ROOT true
|