web2py-optimized.dockerfile 793 B

12345678910111213141516171819202122232425262728293031
  1. FROM python:2.7.15-stretch
  2. ADD ./ /web2py
  3. WORKDIR /web2py
  4. RUN pip install -r /web2py/requirements.txt
  5. RUN git clone --recursive --branch master https://github.com/web2py/web2py.git
  6. WORKDIR /web2py/web2py
  7. # The following commit is checked out in order to take advantage of several
  8. # bug fixes that were made after the latest stable release. This can be changed
  9. # in future rounds once a new stable release has been made.
  10. RUN git checkout 623f3b99477eb97ffadb20d6f7cb3da398253c9c
  11. WORKDIR /web2py
  12. RUN cp -r app/standard/ web2py/applications/
  13. RUN cp -r app/optimized/ web2py/applications/
  14. RUN cp app/wsgi.py web2py/
  15. RUN cp app/routes.py web2py/
  16. RUN touch web2py/__init__.py
  17. RUN python compile_apps.py
  18. WORKDIR /web2py
  19. EXPOSE 8080
  20. CMD gunicorn web2py.wsgi:application -c gunicorn_conf.py