Dockerfile 767 B

12345678910111213141516171819202122232425262728293031
  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.6
  5. ENV PYTHONUNBUFFERED 1
  6. ENV IN_MISAGO_DOCKER 1
  7. ENV PATH "$PATH:/srv/misago"
  8. # Install dependencies in one single command/layer
  9. RUN apt-get update && apt-get install -y \
  10. vim \
  11. libffi-dev \
  12. libssl-dev \
  13. sqlite3 \
  14. libjpeg-dev \
  15. libopenjp2-7-dev \
  16. locales \
  17. cron \
  18. postgresql-client \
  19. gettext
  20. # Add requirements and install them. We do this unnecessasy rebuilding.
  21. ADD requirements.txt /
  22. RUN pip install --upgrade pip && pip install -r requirements.txt
  23. WORKDIR /srv/misago
  24. EXPOSE 8000
  25. CMD python manage.py runserver 0.0.0.0:8000