Changes for fixing Docker-Compose

Development uses localhost db
Instead of creating a separate network, just use the link parameter
This commit is contained in:
Patrick McDonagh
2017-05-03 13:10:41 -05:00
parent d5ff30356a
commit 0e58c84c6a
4 changed files with 21 additions and 25 deletions

View File

@@ -1,11 +1,5 @@
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
@@ -18,7 +12,7 @@ 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
# COPY development.ini /root/www/development.ini
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*