Dockerfile 669 B

1234567891011121314151617181920212223242526272829
  1. # This dockerfile is only meant for local development of Misago
  2. # If you are looking for a proper docker setup for Misago look elsewhere
  3. FROM python:3
  4. ENV PYTHONUNBUFFERED 1
  5. ENV PATH "$PATH:/srv/misago"
  6. # Install dependencies in one single command/layer
  7. RUN apt-get update && apt-get install -y \
  8. vim \
  9. libffi-dev \
  10. libssl-dev \
  11. sqlite3 \
  12. libjpeg-dev \
  13. libopenjpeg-dev \
  14. locales \
  15. cron \
  16. postgresql-client \
  17. gettext
  18. # Add requirements and install them. We do this unnecessasy rebuilding.
  19. ADD requirements.txt /
  20. RUN pip install -r requirements.txt
  21. WORKDIR /srv/misago
  22. EXPOSE 8000
  23. CMD python manage.py runserver 0.0.0.0:8000