Use base ubuntu image for docs
-FROM continuumio/anaconda3
+FROM ubuntu:17.10
MAINTAINER dgrossman@iqt.org
-RUN apt-get update
-RUN apt-get install -y python-pip \
+RUN apt-get update && apt-get install -y python3 python3-pip \
texlive \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended
-RUN pip install Sphinx==1.4
-RUN pip install sphinx_rtd_theme
-RUN pip install alabaster
-RUN pip install sphinx_bootstrap_theme
-RUN pip install recommonmark
+RUN pip3 install Sphinx==1.4
+RUN pip3 install sphinx_rtd_theme
+RUN pip3 install alabaster
+RUN pip3 install sphinx_bootstrap_theme
+RUN pip3 install recommonmark
ENV PYTHONUNBUFFERED 0
EXPOSE 8080:8080
@@ -24,10 +23,10 @@ ENV PYTHONPATH /poseidonWork/poseidon:$PYTHONPATH
ENV POSEIDON_CONFIG /poseidonWork/config/poseidon.config
# install dependencies of poseidon modules for poseidon
-RUN find . -name requirements.txt -type f -exec pip install -r {} \;
+RUN find . -name requirements.txt -type f -exec pip3 install -r {} \;
RUN sphinx-apidoc -o docs poseidon -F --follow-links && cd docs && make html && make man
WORKDIR /poseidonWork/docs/_build/html
-CMD ["/usr/bin/python","-m","SimpleHTTPServer","8080"]
+CMD ["/usr/bin/python3","-m","http.server","8080"]
