A Disqus alternative https://posativ.org/isso/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
926B

  1. # First, compile JS stuff
  2. FROM node
  3. WORKDIR /src/
  4. COPY . .
  5. RUN npm install -g requirejs uglify-js jade bower
  6. RUN make init js
  7. # Second, create virtualenv
  8. FROM python:3-stretch
  9. WORKDIR /src/
  10. COPY --from=0 /src .
  11. RUN apt-get -qqy update && apt-get -qqy install python3-dev sqlite3
  12. RUN python3 -m venv /isso \
  13. && . /isso/bin/activate \
  14. && pip install gunicorn cffi \
  15. && python setup.py install
  16. # Third, create final repository
  17. FROM python:3-slim-stretch
  18. WORKDIR /isso/
  19. COPY --from=1 /isso .
  20. # Configuration
  21. VOLUME /db /config
  22. EXPOSE 8080
  23. ENV ISSO_SETTINGS /config/isso.cfg
  24. CMD ["/isso/bin/gunicorn", "-b", "0.0.0.0:8080", "-w", "4", "--preload", "isso.run"]
  25. # Example of use:
  26. #
  27. # docker build -t isso .
  28. # docker run -it --rm -v /opt/isso:/config -v /opt/isso:/db -v $PWD:$PWD isso /isso/bin/isso -c \$ISSO_SETTINGS import disqus.xml
  29. # docker run -d --rm --name isso -p 8080:8080 -v /opt/isso:/config -v /opt/isso:/db isso