mirror of
https://github.com/django/daphne.git
synced 2025-07-14 01:42:17 +03:00
* Do not generate new fingerprint when connection fails * Do not try to print latencies when all connections failed * Update asgi_redis and channels versions in Dockerfile
28 lines
651 B
Docker
28 lines
651 B
Docker
FROM ubuntu:16.04
|
|
|
|
MAINTAINER Andrew Godwin <andrew@aeracode.org>
|
|
|
|
# python-dev \
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
git \
|
|
python-setuptools \
|
|
python-pip && \
|
|
pip install -U pip
|
|
|
|
# Install asgi_redis driver and most recent Daphne
|
|
RUN pip install \
|
|
asgi_redis==1.0.0 \
|
|
git+https://github.com/django/daphne.git@#egg=daphne
|
|
|
|
# Clone Channels and install it
|
|
RUN git clone https://github.com/django/channels.git /srv/channels/ && \
|
|
cd /srv/channels && \
|
|
git reset --hard origin/master && \
|
|
python setup.py install
|
|
|
|
WORKDIR /srv/channels/testproject/
|
|
ENV REDIS_URL=redis://redis:6379
|
|
|
|
EXPOSE 80
|