Files
POC-Java-www/Dockerfile
2017-05-02 17:35:29 -05:00

29 lines
883 B
Docker

FROM python:latest
# RUN apt-get update && apt-get install -y nginx python3 python3-pip python python-pip supervisor
# COPY poc.conf /etc/nginx/sites-available/poc.conf
# RUN rm /etc/nginx/sites-enabled/default && ln -s /etc/nginx/sites-available/poc.conf /etc/nginx/sites-enabled/ && sleep 2 && service nginx start
COPY pocwww /root/www/pocwww
COPY setup.py /root/www/setup.py
COPY README.txt /root/www/README.txt
COPY CHANGES.txt /root/www/CHANGES.txt
COPY MANIFEST.in /root/www/MANIFEST.in
COPY generate_cert.sh /root/www/generate_cert.sh
RUN chmod +x /root/www/generate_cert.sh
RUN /root/www/generate_cert.sh
RUN pip3 install /root/www/
COPY production.ini /root/www/production.ini
COPY development.ini /root/www/development.ini
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 6543
CMD ["pserve", "/root/www/production.ini", "http_port=6543"]