mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
Update dockerfile a bit so it caches right
This commit is contained in:
parent
a0f6d5b8b8
commit
6ed46c7228
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user