1
0

web 1.1 KB

1234567891011121314151617181920212223242526
  1. FROM registry.fedoraproject.org/fedora:25
  2. MAINTAINER Patrick Uiterwijk <patrick@puiterwijk.org>
  3. VOLUME ["/repos"]
  4. RUN mkdir /code
  5. RUN dnf install -y python2-devel python-setuptools python-nose py-bcrypt python-alembic \
  6. python-arrow python-binaryornot python-bleach python-blinker \
  7. python-chardet python-cryptography python-docutils python-flask \
  8. python-flask-wtf python-flask-multistatic python-markdown python-psutil \
  9. python-pygit2 python-pygments python-fedora python-openid python-openid-cla \
  10. python-openid-teams python-straight-plugin python-wtforms python-munch \
  11. python-enum34 python-redis python-sqlalchemy systemd gitolite3 python-filelock \
  12. python-fedora-flask python2-pillow python2-psycopg2
  13. RUN dnf install -y python2-celery
  14. WORKDIR /code
  15. # Openshift: --no-debug
  16. ENTRYPOINT ["/usr/bin/python", "/code/runserver.py", "--host", "0.0.0.0", "--config", "/code/openshift.cfg"]
  17. EXPOSE 5000
  18. # Code injection is last to make optimal use of caches
  19. VOLUME ["/code"]
  20. # Openshift: COPY / /code
  21. VOLUME ["/attachments"]