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.
 
 
 
 
 
 

35 lines
1.0 KiB

  1. # First, compile JS stuff
  2. FROM node:dubnium-buster
  3. WORKDIR /src/
  4. COPY . .
  5. RUN npm install -g requirejs uglify-js jade bower \
  6. && make init js
  7. # Second, create virtualenv
  8. FROM python:3.8-buster
  9. WORKDIR /src/
  10. COPY --from=0 /src .
  11. RUN python3 -m venv /isso \
  12. && . /isso/bin/activate \
  13. && pip3 install --no-cache-dir --upgrade pip \
  14. && pip3 install --no-cache-dir gunicorn cffi flask \
  15. && python setup.py install \
  16. && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  17. # Third, create final repository
  18. FROM python:3.8-slim-buster
  19. WORKDIR /isso/
  20. COPY --from=1 /isso .
  21. # Configuration
  22. VOLUME /db /config
  23. EXPOSE 8080
  24. ENV ISSO_SETTINGS /config/isso.cfg
  25. CMD ["/isso/bin/gunicorn", "-b", "0.0.0.0:8080", "-w", "4", "--preload", "isso.run", "--worker-tmp-dir", "/dev/shm"]
  26. # Example of use:
  27. #
  28. # docker build -t isso .
  29. # 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
  30. # docker run -d --rm --name isso -p 8080:8080 -v /opt/isso:/config -v /opt/isso:/db isso