Dockerfile 826 B

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