@@ -0,0 +1,13 | |||
|
1 | import os | |
|
2 | ||
|
3 | from channels.routing import ProtocolTypeRouter | |
|
4 | from django.core.asgi import get_asgi_application | |
|
5 | ||
|
6 | os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") | |
|
7 | ||
|
8 | application = ProtocolTypeRouter( | |
|
9 | { | |
|
10 | "http": get_asgi_application(), | |
|
11 | # Just HTTP for now. (We can add other protocols later.) | |
|
12 | } | |
|
13 | ) No newline at end of file |
@@ -26,6 +26,8 RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommend | |||
|
26 | 26 | && pip install -v --timeout 120 --no-cache-dir ./requests-2.28.2-py3-none-any.whl \ |
|
27 | 27 | && pip install -v --timeout 120 --no-cache-dir ./redis-4.4.2-py3-none-any.whl \ |
|
28 | 28 | && pip install -v --timeout 120 --no-cache-dir ./graphene_django-3.0.0-py2.py3-none-any.whl \ |
|
29 | && pip install -v --timeout 120 --no-cache-dir ./channels-4.0.0.tar.gz \ | |
|
30 | && pip install -v --timeout 120 --no-cache-dir ./daphne-4.0.0.tar.gz \ | |
|
29 | 31 | #&& pip install -v --timeout 120 -r requirements.txt --no-cache-dir \ |
|
30 | 32 | && apt-get purge -y --auto-remove gcc g++\ |
|
31 | 33 | && rm -rf /var/lib/apt/lists/* |
General Comments 0
You need to be logged in to leave comments.
Login now