Update dockerfile a bit so it caches right

This commit is contained in:
Andrew Godwin 2016-03-20 18:05:16 -07:00
parent a0f6d5b8b8
commit 6ed46c7228

View File

@ -10,10 +10,17 @@ RUN apt-get update && \
python-pip && \ python-pip && \
pip install -U pip pip install -U pip
RUN pip install channels==0.9.5 asgi_redis==0.8.3 # Install asgi_redis driver and most recent Daphne
RUN pip install \
asgi_redis==0.8.3 \
git+https://github.com/andrewgodwin/daphne.git@#egg=daphne
RUN git clone https://github.com/andrewgodwin/channels.git /srv/application/ # Clone Channels and install it
RUN git clone https://github.com/andrewgodwin/channels.git /srv/channels/ && \
cd /srv/channels && \
git reset --hard caa589ae708a1a66ba1bdcd24f5fd473040772bd && \
python setup.py install
WORKDIR /srv/application/testproject/ WORKDIR /srv/channels/testproject/
EXPOSE 80 EXPOSE 80